mirror of https://gitlab.com/bashrc2/epicyon
Extra timeline checks
parent
72867fd7bc
commit
23cf6f724a
6
posts.py
6
posts.py
|
@ -1858,7 +1858,7 @@ def createBoxBase(baseDir: str,boxname: str, \
|
||||||
|
|
||||||
if isPost:
|
if isPost:
|
||||||
isTimelinePost=False
|
isTimelinePost=False
|
||||||
if currPage == pageNumber and postsOnPageCtr <= itemsPerPage:
|
if currPage <= pageNumber and postsOnPageCtr <= itemsPerPage:
|
||||||
# get the post as json
|
# get the post as json
|
||||||
p = json.loads(postStr)
|
p = json.loads(postStr)
|
||||||
|
|
||||||
|
@ -1872,7 +1872,7 @@ def createBoxBase(baseDir: str,boxname: str, \
|
||||||
if isDM(p) or isReply(p,boxActor):
|
if isDM(p) or isReply(p,boxActor):
|
||||||
isTimelinePost=True
|
isTimelinePost=True
|
||||||
|
|
||||||
if isTimelinePost:
|
if isTimelinePost and currPage == pageNumber:
|
||||||
# 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']
|
||||||
|
@ -1903,7 +1903,7 @@ def createBoxBase(baseDir: str,boxname: str, \
|
||||||
if postsOnPageCtr >= itemsPerPage:
|
if postsOnPageCtr >= itemsPerPage:
|
||||||
break
|
break
|
||||||
# count the pages
|
# count the pages
|
||||||
if isTimelinePost or boxname=='inbox' or boxname=='outbox':
|
if isTimelinePost:
|
||||||
postsCtr += 1
|
postsCtr += 1
|
||||||
if postsCtr >= itemsPerPage:
|
if postsCtr >= itemsPerPage:
|
||||||
postsCtr = 0
|
postsCtr = 0
|
||||||
|
|
Loading…
Reference in New Issue