Fixes deletion

This commit is contained in:
Mouse Reeve
2021-02-16 09:35:00 -08:00
parent 08c1553e71
commit b393df8cab
3 changed files with 16 additions and 0 deletions

View File

@ -84,6 +84,12 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
related_status=self,
)
def delete(self, *args, **kwargs):
''' "delete" a status '''
self.deleted = True
self.deleted_date = timezone.now()
self.save()
@property
def recipients(self):
''' tagged users who definitely need to get this status in broadcast '''