summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-22 19:58:42 -0700
committerAndrew Godwin2022-11-22 19:58:56 -0700
commit975c205d1d8152f68745597487862ead00c6dac9 (patch)
treef3f9dca0acb168bc84e2937d1cfc4e62c9af18f6 /activities
parent5616ef02b3b9f84019d48266c07267c83aa9f194 (diff)
downloadtakahe-975c205d1d8152f68745597487862ead00c6dac9.tar.gz
takahe-975c205d1d8152f68745597487862ead00c6dac9.tar.bz2
takahe-975c205d1d8152f68745597487862ead00c6dac9.zip
Show boosts and likes on other post list pages
Diffstat (limited to 'activities')
-rw-r--r--activities/views/timelines.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/activities/views/timelines.py b/activities/views/timelines.py
index 837e5df..0c5de0e 100644
--- a/activities/views/timelines.py
+++ b/activities/views/timelines.py
@@ -77,6 +77,13 @@ class Local(ListView):
.order_by("-created")[:50]
)
+ def get_context_data(self):
+ context = super().get_context_data()
+ context["interactions"] = PostInteraction.get_post_interactions(
+ context["page_obj"], self.request.identity
+ )
+ return context
+
@method_decorator(identity_required, name="dispatch")
class Federated(ListView):
@@ -96,6 +103,13 @@ class Federated(ListView):
.order_by("-created")[:50]
)
+ def get_context_data(self):
+ context = super().get_context_data()
+ context["interactions"] = PostInteraction.get_post_interactions(
+ context["page_obj"], self.request.identity
+ )
+ return context
+
@method_decorator(identity_required, name="dispatch")
class Notifications(ListView):