main
Bob Mottram 2024-05-08 11:45:51 +01:00
parent 9e16199344
commit 0b154ddf69
1 changed files with 2 additions and 3 deletions

View File

@ -90,9 +90,8 @@ def _accept_follow(base_dir: str, message_json: {},
""" """
if not has_object_string_type(message_json, debug): if not has_object_string_type(message_json, debug):
return return
if not message_json['object']['type'] == 'Follow': if message_json['object']['type'] not in ('Follow', 'Join'):
if not message_json['object']['type'] == 'Join': return
return
if debug: if debug:
print('DEBUG: receiving Follow activity') print('DEBUG: receiving Follow activity')
if not message_json['object'].get('actor'): if not message_json['object'].get('actor'):