mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-02 16:21:32 -08:00
longer timeout when doing a follow - friendica
This commit is contained in:
parent
1b61468559
commit
da69a87978
1 changed files with 2 additions and 2 deletions
|
@ -396,7 +396,7 @@ def subscribe(actor):
|
|||
"id": f"https://{current_app.config['SERVER_NAME']}/activities/follow/{join_request.id}"
|
||||
}
|
||||
success = post_request(community.ap_inbox_url, follow, current_user.private_key,
|
||||
current_user.public_url() + '#main-key')
|
||||
current_user.public_url() + '#main-key', timeout=10)
|
||||
if not success:
|
||||
flash(_("There was a problem while trying to communicate with remote server. If other people have already joined this community it won't matter."), 'error')
|
||||
# for local communities, joining is instant
|
||||
|
@ -443,7 +443,7 @@ def unsubscribe(actor):
|
|||
'object': follow
|
||||
}
|
||||
success = post_request(community.ap_inbox_url, undo, current_user.private_key,
|
||||
current_user.public_url() + '#main-key')
|
||||
current_user.public_url() + '#main-key', timeout=10)
|
||||
if not success:
|
||||
flash('There was a problem while trying to unsubscribe', 'error')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue