diff options
author | Andrew Godwin | 2022-12-08 23:27:51 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-08 23:27:51 -0700 |
commit | 9a978786d4eac0139b5606e22c605450adbe7a12 (patch) | |
tree | 0436932af14a26fe230d7e08a7e2413dd0beb722 | |
parent | 20f39197836a4040aabd5e71a25e82ee4eabc9b1 (diff) | |
download | takahe-9a978786d4eac0139b5606e22c605450adbe7a12.tar.gz takahe-9a978786d4eac0139b5606e22c605450adbe7a12.tar.bz2 takahe-9a978786d4eac0139b5606e22c605450adbe7a12.zip |
Skip over follows
-rw-r--r-- | activities/models/post_interaction.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activities/models/post_interaction.py b/activities/models/post_interaction.py index 0bc2fff..9630948 100644 --- a/activities/models/post_interaction.py +++ b/activities/models/post_interaction.py @@ -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 ### |