summaryrefslogtreecommitdiffstats
path: root/activities/views
diff options
context:
space:
mode:
Diffstat (limited to 'activities/views')
-rw-r--r--activities/views/timelines.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/activities/views/timelines.py b/activities/views/timelines.py
index 0c5de0e..b680c8a 100644
--- a/activities/views/timelines.py
+++ b/activities/views/timelines.py
@@ -71,7 +71,11 @@ class Local(ListView):
def get_queryset(self):
return (
- Post.objects.filter(visibility=Post.Visibilities.public, author__local=True)
+ Post.objects.filter(
+ visibility=Post.Visibilities.public,
+ author__local=True,
+ in_reply_to__isnull=True,
+ )
.select_related("author")
.prefetch_related("attachments")
.order_by("-created")[:50]
@@ -97,7 +101,9 @@ class Federated(ListView):
def get_queryset(self):
return (
- Post.objects.filter(visibility=Post.Visibilities.public)
+ Post.objects.filter(
+ visibility=Post.Visibilities.public, in_reply_to__isnull=True
+ )
.select_related("author")
.prefetch_related("attachments")
.order_by("-created")[:50]