From 1de6b5d09c55758e5f331950f51c7826992bca3c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 20 Oct 2021 17:06:37 +0100 Subject: [PATCH] Maximum posts in a hashtag feed --- daemon.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 986f59b09..1c7a90e6a 100644 --- a/daemon.py +++ b/daemon.py @@ -356,6 +356,9 @@ import os # maximum number of posts to list in outbox feed maxPostsInFeed = 12 +# maximum number of posts in a hashtag feed +maxPostsInHashtagFeed = 6 + # reduced posts for media feed because it can take a while maxPostsInMediaFeed = 6 @@ -2990,7 +2993,7 @@ class PubServer(BaseHTTPRequestHandler): self.server.translate, baseDir, searchStr[1:], 1, - maxPostsInFeed, + maxPostsInHashtagFeed, self.server.session, self.server.cachedWebfingers, self.server.personCache, @@ -6711,7 +6714,7 @@ class PubServer(BaseHTTPRequestHandler): self.server.maxRecentPosts, self.server.translate, baseDir, hashtag, pageNumber, - maxPostsInFeed, self.server.session, + maxPostsInHashtagFeed, self.server.session, self.server.cachedWebfingers, self.server.personCache, httpPrefix,