mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
add celery decorator to task functions #172
This commit is contained in:
parent
e2e20c76a0
commit
ec88d84775
1 changed files with 2 additions and 0 deletions
|
@ -1245,6 +1245,7 @@ def user_inbox(actor):
|
|||
return resp
|
||||
|
||||
|
||||
@celery.task
|
||||
def process_user_follow_request(request_json, activitypublog_id, remote_user_id):
|
||||
activity_log = ActivityPubLog.query.get(activitypublog_id)
|
||||
local_user_ap_id = request_json['object']
|
||||
|
@ -1285,6 +1286,7 @@ def process_user_follow_request(request_json, activitypublog_id, remote_user_id)
|
|||
db.session.commit()
|
||||
|
||||
|
||||
@celery.task
|
||||
def process_user_undo_follow_request(request_json, activitypublog_id, remote_user_id):
|
||||
activity_log = ActivityPubLog.query.get(activitypublog_id)
|
||||
local_user_ap_id = request_json['object']['object']
|
||||
|
|
Loading…
Add table
Reference in a new issue