mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
Send (undo)Like from Remote User follower to shared inbox
This commit is contained in:
parent
b1617f3e98
commit
c7f2a168fe
1 changed files with 4 additions and 0 deletions
|
@ -1224,6 +1224,10 @@ def user_inbox(actor):
|
||||||
else:
|
else:
|
||||||
process_user_undo_follow_request.delay(request_json, activity_log.id, actor.id)
|
process_user_undo_follow_request.delay(request_json, activity_log.id, actor.id)
|
||||||
return ''
|
return ''
|
||||||
|
if (('type' in request_json and request_json['type'] == 'Like') or
|
||||||
|
('type' in request_json and request_json['type'] == 'Undo' and
|
||||||
|
'object' in request_json and request_json['object']['type'] == 'Like')):
|
||||||
|
return shared_inbox()
|
||||||
except VerificationError:
|
except VerificationError:
|
||||||
activity_log.result = 'failure'
|
activity_log.result = 'failure'
|
||||||
activity_log.exception_message = 'Could not verify signature'
|
activity_log.exception_message = 'Could not verify signature'
|
||||||
|
|
Loading…
Add table
Reference in a new issue