mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
Monitor any more Announces from nodebb that are missing a Create actor
This commit is contained in:
parent
c30eceabf2
commit
a24ed21be6
1 changed files with 2 additions and 0 deletions
|
@ -420,6 +420,7 @@ def shared_inbox():
|
|||
object = request_json['object']
|
||||
if not 'actor' in object:
|
||||
missing_actor_in_announce_object = True
|
||||
log_incoming_ap(id, APLOG_ANNOUNCE, APLOG_MONITOR, request_json, 'Actor is missing in Announce object')
|
||||
if not 'id' in object or not 'type' in object or not 'object' in object:
|
||||
if 'type' in object and (object['type'] == 'Page' or object['type'] == 'Note'):
|
||||
log_incoming_ap(id, APLOG_ANNOUNCE, APLOG_IGNORED, saved_json, 'Intended for Mastodon')
|
||||
|
@ -541,6 +542,7 @@ def replay_inbox_request(request_json):
|
|||
object = request_json['object']
|
||||
if not 'actor' in object:
|
||||
missing_actor_in_announce_object = True
|
||||
log_incoming_ap(id, APLOG_ANNOUNCE, APLOG_MONITOR, request_json, 'REPLAY: Actor is missing in Announce object')
|
||||
if not 'id' in object or not 'type' in object or not 'object' in object:
|
||||
if 'type' in object and (object['type'] == 'Page' or object['type'] == 'Note'):
|
||||
log_incoming_ap(id, APLOG_ANNOUNCE, APLOG_IGNORED, request_json, 'REPLAY: Intended for Mastodon')
|
||||
|
|
Loading…
Reference in a new issue