From b4aa566dba55796d55c50784b32915cfb6e6e1a1 Mon Sep 17 00:00:00 2001 From: freamon Date: Fri, 17 Jan 2025 23:22:32 +0000 Subject: [PATCH] Also increment subscriptions_count for remote users joining local communities #424 --- app/activitypub/routes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/activitypub/routes.py b/app/activitypub/routes.py index 08c08bea..24afb5ce 100644 --- a/app/activitypub/routes.py +++ b/app/activitypub/routes.py @@ -672,6 +672,7 @@ def process_inbox_request(request_json, store_ap_json): if community_membership(user, community) != SUBSCRIPTION_MEMBER: member = CommunityMember(user_id=user.id, community_id=community.id) db.session.add(member) + community.subscriptions_count += 1 db.session.commit() cache.delete_memoized(community_membership, user, community) # send accept message to acknowledge the follow