merge-requests/30/head
Bob Mottram 2023-12-24 16:17:47 +00:00
parent 11e6a89f2f
commit 7736ee3531
1 changed files with 3 additions and 0 deletions

View File

@ -8057,14 +8057,17 @@ class PubServer(BaseHTTPRequestHandler):
acct_dir(base_dir, nickname, domain) + \
'/.bideFollows'
hide_follows = False
print('hide follows 1 ' + str(fields))
if fields.get('hideFollows'):
if fields['hideFollows'] == 'on':
hide_follows = True
self.server.hide_follows[nickname] = True
print('hide follows 2')
try:
with open(hide_follows_filename, 'w+',
encoding='utf-8') as rfile:
rfile.write('\n')
print('hide follows 3')
except OSError:
print('EX: unable to write hideFollows ' +
hide_follows_filename)