From c8417c42967e00a415905149aaa650d0b1eedb17 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 20 Apr 2024 13:11:15 +0100 Subject: [PATCH] Reverse logic --- daemon_post_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon_post_profile.py b/daemon_post_profile.py index f5989e880..213228f36 100644 --- a/daemon_post_profile.py +++ b/daemon_post_profile.py @@ -939,14 +939,14 @@ def _profile_post_show_quote_toots(fields: {}, account_dir: str) -> None: show_quote_toots = True show_quote_toots_file = account_dir + '/.allowQuotes' if os.path.isfile(show_quote_toots_file): - if show_quote_toots: + if not show_quote_toots: try: os.remove(show_quote_toots_file) except OSError: print('EX: unable to remove allowQuotes file ' + show_quote_toots_file) else: - if not show_quote_toots: + if show_quote_toots: try: with open(show_quote_toots_file, 'w+', encoding='utf-8') as fp_quotes: