Exclude objects

main
Bob Mottram 2024-05-25 19:19:00 +01:00
parent 5fa3a7928d
commit c4cbbfa073
1 changed files with 2 additions and 1 deletions

View File

@ -3228,7 +3228,8 @@ def _receive_announce(recent_posts_cache: {},
print('DEBUG: self-boost rejected')
return False
if not has_users_path(message_json['object']):
print('WARN: unknown users path ' + message_json['object'])
if '/objects/' not in str(message_json['object']):
print('WARN: unknown users path ' + str(message_json['object']))
if debug:
print('DEBUG: ' +
'"users", "channel" or "profile" missing in ' +