Fixes star rating displays

This commit is contained in:
Mouse Reeve
2020-09-28 15:57:31 -07:00
parent 49e94f8e8e
commit a4d1985f86
13 changed files with 111 additions and 90 deletions

View File

@ -91,6 +91,11 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
to write this so it's just a property '''
return cls.objects.filter(reply_parent=status).select_subclasses()
@property
def status_type(self):
''' expose the type of status for the ui using activity type '''
return self.activity_serializer.__name__
def to_replies(self, **kwargs):
''' helper function for loading AP serialized replies to a status '''
return self.to_ordered_collection(