forked from indymedia/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
|
||||
p = json.loads(postStr)
|
||||
|
||||
if (boxname!='dm' and boxname!='replies') or \
|
||||
(boxname=='dm' and isDM(p)) or \
|
||||
(boxname=='replies' and (isReply(p,boxActor) or isDM(p))):
|
||||
isTimelinePost=False
|
||||
if (boxname!='dm' and boxname!='replies'):
|
||||
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
|
||||
if p.get('capability'):
|
||||
del p['capability']
|
||||
|
|
Loading…
Reference in New Issue