Log unknown users path

This commit is contained in:
Bob Mottram committed 2024-05-25 19:11:50 +01:00
1 parent b132717efc
commit 5fa3a7928d
2 files changed
+9

No files matched your search

+2
View File
@@ -3217,6 +3217,7 @@ def _receive_announce(recent_posts_cache: {},
return False
actor_url = get_actor_from_post(message_json)
if not has_users_path(actor_url):
print('WARN: unknown users path ' + actor_url)
if debug:
print('DEBUG: ' +
'"users" or "profile" missing from actor in ' +
@@ -3227,6 +3228,7 @@ 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 debug:
print('DEBUG: ' +
'"users", "channel" or "profile" missing in ' +
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
journalctl -u epicyon | grep ' unknown users path' > .unknown_users_paths.txt
if [ ! -f .unknown_users_paths.txt ]; then
echo 'No unknown users paths'
else
cat .unknown_users_paths.txt
fi