mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
Don't overwrite activity_log.result from value set in undo_vote()
This commit is contained in:
parent
87d932c655
commit
43e2d59025
1 changed files with 0 additions and 1 deletions
|
@ -856,7 +856,6 @@ def process_inbox_request(request_json, activitypublog_id, ip_address):
|
|||
comment = None
|
||||
target_ap_id = request_json['object']['object']['object'] # object object object!
|
||||
post = undo_vote(activity_log, comment, post, target_ap_id, user)
|
||||
activity_log.result = 'success'
|
||||
elif request_json['object']['object']['type'] == 'Delete':
|
||||
if 'object' in request_json and 'object' in request_json['object']:
|
||||
restore_post_or_comment(request_json['object']['object'])
|
||||
|
|
Loading…
Add table
Reference in a new issue