Avoid multiple definitions

main
Bob Mottram 2023-06-26 21:50:54 +01:00
parent f8171509c1
commit 3bd84846af
1 changed files with 0 additions and 4 deletions

View File

@ -7655,8 +7655,6 @@ class PubServer(BaseHTTPRequestHandler):
if fields.get('repliesFromFollowersOnly'): if fields.get('repliesFromFollowersOnly'):
if fields['repliesFromFollowersOnly'] == 'on': if fields['repliesFromFollowersOnly'] == 'on':
show_replies_followers = True show_replies_followers = True
account_dir = acct_dir(self.server.base_dir,
nickname, self.server.domain)
show_replies_followers_file = \ show_replies_followers_file = \
account_dir + '/.repliesFromFollowersOnly' account_dir + '/.repliesFromFollowersOnly'
if os.path.isfile(show_replies_followers_file): if os.path.isfile(show_replies_followers_file):
@ -7683,8 +7681,6 @@ class PubServer(BaseHTTPRequestHandler):
if fields.get('repliesFromMutualsOnly'): if fields.get('repliesFromMutualsOnly'):
if fields['repliesFromMutualsOnly'] == 'on': if fields['repliesFromMutualsOnly'] == 'on':
show_replies_mutuals = True show_replies_mutuals = True
account_dir = acct_dir(self.server.base_dir,
nickname, self.server.domain)
show_replies_mutuals_file = \ show_replies_mutuals_file = \
account_dir + '/.repliesFromMutualsOnly' account_dir + '/.repliesFromMutualsOnly'
if os.path.isfile(show_replies_mutuals_file): if os.path.isfile(show_replies_mutuals_file):