forked from indymedia/epicyon
Use post content
parent
077709f180
commit
e97e223ecb
6
posts.py
6
posts.py
|
@ -2296,7 +2296,7 @@ def isTimelinePost(filePath: str,boxname: str,postsInBox: []) -> bool:
|
||||||
if 'mediaType' not in postStr or 'image/' not in postStr:
|
if 'mediaType' not in postStr or 'image/' not in postStr:
|
||||||
return False
|
return False
|
||||||
# add the post to the dictionary
|
# add the post to the dictionary
|
||||||
postsInBox.append(filePath)
|
postsInBox.append(postStr)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -2433,9 +2433,7 @@ def createBoxIndexed(session,baseDir: str,boxname: str, \
|
||||||
if p['object'].get('bookmarks'):
|
if p['object'].get('bookmarks'):
|
||||||
p['bookmarks']={}
|
p['bookmarks']={}
|
||||||
|
|
||||||
# insert it into the box feed
|
boxItems['orderedItems'].append(p)
|
||||||
if not headerOnly:
|
|
||||||
boxItems['orderedItems'].append(p)
|
|
||||||
|
|
||||||
return boxItems
|
return boxItems
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue