mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
cannot use current_user in celery task
This commit is contained in:
parent
c9fa9a9748
commit
be0544a372
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ def send_community_follow(community_id, join_request_id, user_id):
|
|||
user = User.query.get(user_id)
|
||||
community = Community.query.get(community_id)
|
||||
follow = {
|
||||
"actor": current_user.public_url(),
|
||||
"actor": user.public_url(),
|
||||
"to": [community.public_url()],
|
||||
"object": community.public_url(),
|
||||
"type": "Follow",
|
||||
|
|
Loading…
Add table
Reference in a new issue