Post separators on profile

merge-requests/30/head
Bob Mottram 2020-11-07 20:56:19 +00:00
parent cda63591d6
commit dbbfb4c91c
1 changed files with 4 additions and 2 deletions

View File

@ -3140,6 +3140,7 @@ def htmlProfilePosts(recentPostsCache: {}, maxRecentPosts: int,
These should only be public posts These should only be public posts
""" """
iconsDir = getIconsDir(baseDir) iconsDir = getIconsDir(baseDir)
separatorStr = htmlPostSeparator(baseDir, None)
profileStr = '' profileStr = ''
maxItems = 4 maxItems = 4
ctr = 0 ctr = 0
@ -3172,7 +3173,7 @@ def htmlProfilePosts(recentPostsCache: {}, maxRecentPosts: int,
showPublishedDateOnly, showPublishedDateOnly,
False, False, False, True, False) False, False, False, True, False)
if postStr: if postStr:
profileStr += postStr profileStr += separatorStr + postStr
ctr += 1 ctr += 1
if ctr >= maxItems: if ctr >= maxItems:
break break
@ -3390,6 +3391,7 @@ def htmlSharesTimeline(translate: {}, pageNumber: int, itemsPerPage: int,
'" alt="' + translate['Page up'] + '"></a>\n' + \ '" alt="' + translate['Page up'] + '"></a>\n' + \
' </center>\n' ' </center>\n'
separatorStr = htmlPostSeparator(baseDir, None)
for published, item in sharesJson.items(): for published, item in sharesJson.items():
showContactButton = False showContactButton = False
if item['actor'] != actor: if item['actor'] != actor:
@ -3397,7 +3399,7 @@ def htmlSharesTimeline(translate: {}, pageNumber: int, itemsPerPage: int,
showRemoveButton = False showRemoveButton = False
if item['actor'] == actor: if item['actor'] == actor:
showRemoveButton = True showRemoveButton = True
timelineStr += \ timelineStr += separatorStr + \
htmlIndividualShare(actor, item, translate, htmlIndividualShare(actor, item, translate,
showContactButton, showRemoveButton) showContactButton, showRemoveButton)