mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-14 04:41:04 +00:00
Python formatting
This commit is contained in:
parent
4f5d23e785
commit
9815e9e100
1 changed files with 5 additions and 1 deletions
|
@ -189,7 +189,11 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
|
||||||
if hasattr(activity, "name"):
|
if hasattr(activity, "name"):
|
||||||
activity.name = self.pure_name
|
activity.name = self.pure_name
|
||||||
activity.type = self.pure_type
|
activity.type = self.pure_type
|
||||||
covers = [b.to_activity().get("cover") for b in [getattr(self, "book", None)] + list(self.mention_books.all()) if b]
|
covers = [
|
||||||
|
b.to_activity().get("cover")
|
||||||
|
for b in [getattr(self, "book", None)] + list(self.mention_books.all())
|
||||||
|
if b
|
||||||
|
]
|
||||||
activity.attachment = covers
|
activity.attachment = covers
|
||||||
return activity
|
return activity
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue