mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -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,7 +1279,8 @@ def process_user_follow_request(request_json, activitypublog_id, remote_user_id)
|
||||||
if not existing_follower:
|
if not existing_follower:
|
||||||
auto_accept = not local_user.ap_manually_approves_followers
|
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)
|
new_follower = UserFollower(local_user_id=local_user.id, remote_user_id=remote_user.id, is_accepted=auto_accept)
|
||||||
local_user.ap_followers_url = local_user.ap_public_url + '/followers'
|
if not local_user.ap_followers_url:
|
||||||
|
local_user.ap_followers_url = local_user.ap_public_url + '/followers'
|
||||||
db.session.add(new_follower)
|
db.session.add(new_follower)
|
||||||
accept = {
|
accept = {
|
||||||
"@context": default_context(),
|
"@context": default_context(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue