mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
Also increment subscriptions_count for remote users joining local communities #424
This commit is contained in:
parent
ec232d9a17
commit
b4aa566dba
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue