Disallow following of news actor

main
Bob Mottram 2020-11-20 12:30:42 +00:00
parent 752f16f335
commit 63c97f1429
1 changed files with 5 additions and 0 deletions

View File

@ -2066,6 +2066,11 @@ class PubServer(BaseHTTPRequestHandler):
followingPort == port: followingPort == port:
if debug: if debug:
print('You cannot follow yourself!') print('You cannot follow yourself!')
elif followingrNickname == 'news' and \
followingDomain == domain and \
followingPort == port:
if debug:
print('You cannot follow the news actor')
else: else:
if debug: if debug:
print('Sending follow request from ' + print('Sending follow request from ' +