mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-13 10:51:03 +00:00
Skip over follows
This commit is contained in:
parent
20f3919783
commit
9a978786d4
1 changed files with 3 additions and 1 deletions
|
@ -179,7 +179,9 @@ class PostInteraction(StatorModel):
|
|||
Returns a dict of {interaction_type: set(post_ids)} for all the posts
|
||||
within the events and the given identity, for use in templates.
|
||||
"""
|
||||
return cls.get_post_interactions([e.subject_post for e in events], identity)
|
||||
return cls.get_post_interactions(
|
||||
[e.subject_post for e in events if e.subject_post], identity
|
||||
)
|
||||
|
||||
### Async helpers ###
|
||||
|
||||
|
|
Loading…
Reference in a new issue