main
Bob Mottram 2020-10-23 20:05:17 +01:00
parent 89e2b76901
commit b8e45c868a
1 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ __status__ = "Production"
from pprint import pprint
import os
from utils import isSystemAccount
from utils import getFollowersList
from utils import validNickname
from utils import domainPermitted
@ -574,9 +575,9 @@ def receiveFollowRequest(session, baseDir: str, httpPrefix: str,
print('DEBUG: follow request does not contain a ' +
'nickname for the account followed')
return True
if nicknameToFollow == 'news' or nicknameToFollow == 'inbox':
if isSystemAccount(nicknameToFollow):
if debug:
print('DEBUG: Cannot follow the news or inbox accounts')
print('DEBUG: Cannot follow system account - ' + nicknameToFollow)
return True
handleToFollow = nicknameToFollow + '@' + domainToFollow
if domainToFollow == domain: