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