mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 13:01:08 +00:00
Fix pylint warning
This commit is contained in:
parent
646b27b7a7
commit
eb6bea013f
1 changed files with 1 additions and 2 deletions
|
@ -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"""
|
||||
|
|
Loading…
Reference in a new issue