mirror of https://gitlab.com/bashrc2/epicyon
Extra expanded json check
parent
c5826de158
commit
de5a8ff61d
1
inbox.py
1
inbox.py
|
|
@ -353,6 +353,7 @@ def inbox_permitted_message(domain: str, message_json: {},
|
||||||
""" Initial validation of whether an incoming post is permitted
|
""" Initial validation of whether an incoming post is permitted
|
||||||
"""
|
"""
|
||||||
if '@type' in message_json or \
|
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#object' in message_json or \
|
||||||
'https://www.w3.org/ns/activitystreams#actor' in message_json:
|
'https://www.w3.org/ns/activitystreams#actor' in message_json:
|
||||||
print('WARN: invalid expanded json ' + str(message_json))
|
print('WARN: invalid expanded json ' + str(message_json))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue