main2
Bob Mottram 2019-09-23 21:31:49 +01:00
parent 5179a87198
commit f7419c1f21
1 changed files with 12 additions and 3 deletions

View File

@ -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']