mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-05 04:02:21 +00:00
Extra timeline checks
This commit is contained in:
1 parent
72867fd7bc
commit
23cf6f724a
1 file changed
+4
-4
@@ -1858,7 +1858,7 @@ def createBoxBase(baseDir: str,boxname: str, \
|
||||
|
||||
if isPost:
|
||||
isTimelinePost=False
|
||||
if currPage == pageNumber and postsOnPageCtr <= itemsPerPage:
|
||||
if currPage <= pageNumber and postsOnPageCtr <= itemsPerPage:
|
||||
# get the post as json
|
||||
p = json.loads(postStr)
|
||||
|
||||
@@ -1871,8 +1871,8 @@ def createBoxBase(baseDir: str,boxname: str, \
|
||||
elif boxname=='tlreplies':
|
||||
if isDM(p) or isReply(p,boxActor):
|
||||
isTimelinePost=True
|
||||
|
||||
if isTimelinePost:
|
||||
|
||||
if isTimelinePost and currPage == pageNumber:
|
||||
# remove any capability so that it's not displayed
|
||||
if p.get('capability'):
|
||||
del p['capability']
|
||||
@@ -1903,7 +1903,7 @@ def createBoxBase(baseDir: str,boxname: str, \
|
||||
if postsOnPageCtr >= itemsPerPage:
|
||||
break
|
||||
# count the pages
|
||||
if isTimelinePost or boxname=='inbox' or boxname=='outbox':
|
||||
if isTimelinePost:
|
||||
postsCtr += 1
|
||||
if postsCtr >= itemsPerPage:
|
||||
postsCtr = 0
|
||||
|
||||
Reference in new issue
Block a user