diff --git a/daemon.py b/daemon.py index 0300df5c2..d24198fa6 100644 --- a/daemon.py +++ b/daemon.py @@ -7580,7 +7580,7 @@ class PubServer(BaseHTTPRequestHandler): save_reverse_timeline(base_dir, self.server.reverse_sequence) - # show vote posts checkbox + # show poll/vote/question posts checkbox show_vote_posts = True if fields.get('showVotes'): show_vote_posts = False diff --git a/webapp_profile.py b/webapp_profile.py index b34ace5d0..8f493b1bf 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -2774,8 +2774,7 @@ def html_edit_profile(server, translate: {}, # whether to show votes show_vote_posts = True - show_vote_file = account_dir + '/.noVotes' - if os.path.isfile(show_vote_file): + if os.path.isfile(account_dir + '/.noVotes'): show_vote_posts = False # Option checkboxes