Extra expanded json check

main
bashrc 2026-04-23 18:20:19 +01:00
parent c5826de158
commit de5a8ff61d
1 changed files with 1 additions and 0 deletions

View File

@ -353,6 +353,7 @@ def inbox_permitted_message(domain: str, message_json: {},
""" Initial validation of whether an incoming post is permitted
"""
if '@type' in message_json or \
'@id' in message_json or \
'https://www.w3.org/ns/activitystreams#object' in message_json or \
'https://www.w3.org/ns/activitystreams#actor' in message_json:
print('WARN: invalid expanded json ' + str(message_json))