mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Fix: only write local user's follower URL once
This commit is contained in:
parent
81af3ebcb5
commit
b6237e5eac
1 changed files with 2 additions and 1 deletions
|
@ -1279,6 +1279,7 @@ def process_user_follow_request(request_json, activitypublog_id, remote_user_id)
|
|||
if not existing_follower:
|
||||
auto_accept = not local_user.ap_manually_approves_followers
|
||||
new_follower = UserFollower(local_user_id=local_user.id, remote_user_id=remote_user.id, is_accepted=auto_accept)
|
||||
if not local_user.ap_followers_url:
|
||||
local_user.ap_followers_url = local_user.ap_public_url + '/followers'
|
||||
db.session.add(new_follower)
|
||||
accept = {
|
||||
|
|
Loading…
Add table
Reference in a new issue