Fix pylint warning

This commit is contained in:
Bart Schuurmans 2024-01-21 11:04:08 +01:00
parent 646b27b7a7
commit eb6bea013f

View file

@ -196,8 +196,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
if self.mention_books.exists():
book = self.mention_books.first()
return book.preview_image or book.cover
else:
return self.user.preview_image
return self.user.preview_image
def to_replies(self, **kwargs):
"""helper function for loading AP serialized replies to a status"""