summaryrefslogtreecommitdiffstats
path: root/users
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-22 19:58:42 -0700
committerAndrew Godwin2022-11-22 19:58:56 -0700
commit975c205d1d8152f68745597487862ead00c6dac9 (patch)
treef3f9dca0acb168bc84e2937d1cfc4e62c9af18f6 /users
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 'users')
-rw-r--r--users/views/identity.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/users/views/identity.py b/users/views/identity.py
index b926189..7e50a0d 100644
--- a/users/views/identity.py
+++ b/users/views/identity.py
@@ -8,7 +8,7 @@ from django.shortcuts import redirect
from django.utils.decorators import method_decorator
from django.views.generic import FormView, ListView, TemplateView, View
-from activities.models import Post
+from activities.models import Post, PostInteraction
from core.ld import canonicalise
from core.models import Config
from users.decorators import identity_required
@@ -72,6 +72,10 @@ class ViewIdentity(ListView):
context["identity"] = self.identity
context["follow"] = None
context["reverse_follow"] = None
+ context["interactions"] = PostInteraction.get_post_interactions(
+ context["page_obj"],
+ self.request.identity,
+ )
if self.request.identity:
follow = Follow.maybe_get(self.request.identity, self.identity)
if follow and follow.state in FollowStates.group_active():