Moderators can remove global blocks

main
Bob Mottram 2022-05-14 18:16:36 +01:00
parent c20df95b54
commit 27ad479aa9
1 changed files with 4 additions and 0 deletions

View File

@ -3538,6 +3538,10 @@ class PubServer(BaseHTTPRequestHandler):
remove_block(base_dir,
follower_nickname, domain,
blocking_nickname, blocking_domain_full)
if is_moderator(base_dir, follower_nickname):
remove_global_block(base_dir,
blocking_nickname,
blocking_domain_full)
if calling_domain.endswith('.onion') and onion_domain:
origin_path_str = 'http://' + onion_domain + users_path