mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
nodebb: log bad activity before fixing it
This commit is contained in:
parent
c824f06cae
commit
7bc14cffd2
1 changed files with 1 additions and 1 deletions
|
@ -505,8 +505,8 @@ def shared_inbox():
|
||||||
if missing_actor_in_announce_object:
|
if missing_actor_in_announce_object:
|
||||||
if ((request_json['object']['type'] == 'Create' or request_json['object']['type']) and
|
if ((request_json['object']['type'] == 'Create' or request_json['object']['type']) and
|
||||||
'attributedTo' in request_json['object']['object'] and isinstance(request_json['object']['object']['attributedTo'], str)):
|
'attributedTo' in request_json['object']['object'] and isinstance(request_json['object']['object']['attributedTo'], str)):
|
||||||
request_json['object']['actor'] = request_json['object']['object']['attributedTo']
|
|
||||||
log_incoming_ap(id, APLOG_ANNOUNCE, APLOG_MONITOR, request_json, 'nodebb: Actor is missing in the Create')
|
log_incoming_ap(id, APLOG_ANNOUNCE, APLOG_MONITOR, request_json, 'nodebb: Actor is missing in the Create')
|
||||||
|
request_json['object']['actor'] = request_json['object']['object']['attributedTo']
|
||||||
|
|
||||||
if current_app.debug:
|
if current_app.debug:
|
||||||
process_inbox_request(request_json, store_ap_json)
|
process_inbox_request(request_json, store_ap_json)
|
||||||
|
|
Loading…
Reference in a new issue