Fixes pure status serializer
This commit is contained in:
parent
ef92e562fd
commit
d79a756813
3 changed files with 5 additions and 6 deletions
|
@ -78,7 +78,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
|
|||
activity['replies'] = self.to_replies()
|
||||
|
||||
# "pure" serialization for non-bookwyrm instances
|
||||
if pure:
|
||||
if pure and hasattr(self, 'pure_content'):
|
||||
activity['content'] = self.pure_content
|
||||
if 'name' in activity:
|
||||
activity['name'] = self.pure_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue