mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
5179a87198
commit
f7419c1f21
15
posts.py
15
posts.py
|
@ -1861,9 +1861,18 @@ def createBoxBase(baseDir: str,boxname: str, \
|
||||||
# get the post as json
|
# get the post as json
|
||||||
p = json.loads(postStr)
|
p = json.loads(postStr)
|
||||||
|
|
||||||
if (boxname!='dm' and boxname!='replies') or \
|
isTimelinePost=False
|
||||||
(boxname=='dm' and isDM(p)) or \
|
if (boxname!='dm' and boxname!='replies'):
|
||||||
(boxname=='replies' and (isReply(p,boxActor) or isDM(p))):
|
isTimelinePost=True
|
||||||
|
else:
|
||||||
|
if boxname=='dm':
|
||||||
|
if isDM(p):
|
||||||
|
isTimelinePost=True
|
||||||
|
elif boxname=='replies':
|
||||||
|
if isDM(p) or isReply(p,boxActor):
|
||||||
|
isTimelinePost=True
|
||||||
|
|
||||||
|
if isTimelinePost:
|
||||||
# remove any capability so that it's not displayed
|
# remove any capability so that it's not displayed
|
||||||
if p.get('capability'):
|
if p.get('capability'):
|
||||||
del p['capability']
|
del p['capability']
|
||||||
|
|
Loading…
Reference in New Issue