mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
1158e6b65c
commit
af7860bf14
5
posts.py
5
posts.py
|
@ -7088,13 +7088,12 @@ def post_is_muted(base_dir: str, nickname: str, domain: str,
|
|||
if is_muted is True or is_muted is False:
|
||||
return is_muted
|
||||
|
||||
is_muted = False
|
||||
post_dir = acct_dir(base_dir, nickname, domain)
|
||||
mute_filename = \
|
||||
post_dir + '/inbox/' + message_id.replace('/', '#') + '.json.muted'
|
||||
if os.path.isfile(mute_filename):
|
||||
is_muted = True
|
||||
else:
|
||||
return True
|
||||
is_muted = False
|
||||
mute_filename = \
|
||||
post_dir + '/outbox/' + \
|
||||
message_id.replace('/', '#') + '.json.muted'
|
||||
|
|
Loading…
Reference in New Issue