Timestamp links to post

main
Bob Mottram 2020-01-02 22:42:06 +00:00
parent a5dffaa5f7
commit a82a12418e
2 changed files with 2 additions and 1 deletions

View File

@ -348,6 +348,7 @@ def followApprovalRequired(baseDir: str,nicknameToFollow: str, \
followRequestHandle: str) -> bool: followRequestHandle: str) -> bool:
""" Returns the policy for follower approvals """ Returns the policy for follower approvals
""" """
# has this handle already been manually approved?
if preApprovedFollower(baseDir,nicknameToFollow,domainToFollow, \ if preApprovedFollower(baseDir,nicknameToFollow,domainToFollow, \
followRequestHandle): followRequestHandle):
return False return False

View File

@ -2602,7 +2602,7 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
publishedStr=publishedStr.replace('T',' ').split('.')[0] publishedStr=publishedStr.replace('T',' ').split('.')[0]
datetimeObject = parse(publishedStr) datetimeObject = parse(publishedStr)
publishedStr=datetimeObject.strftime("%a %b %d, %H:%M") publishedStr=datetimeObject.strftime("%a %b %d, %H:%M")
footerStr='<span class="'+timeClass+'">'+publishedStr+'</span>\n' footerStr='<a href="'+messageId+'" class="'+timeClass+'">'+publishedStr+'</a>\n'
# change the background color for DMs in inbox timeline # change the background color for DMs in inbox timeline
if showDMicon: if showDMicon: