'+ \
- '
' \
+ '
' \
'
'+displayName+'
' \
'
@'+nickname+'@'+domainFull+'
' \
'
'+profileDescription+'
'+ \
@@ -1347,7 +1347,7 @@ def htmlProfile(translate: {},projectVersion: str, \
with open(cssFilename, 'r') as cssFile:
profileStyle = cssFile.read().replace('image.png',actor+'/image.png')
- licenseStr='
'
+ licenseStr='
'
if selected=='posts':
profileStr+= \
@@ -1425,7 +1425,7 @@ def individualFollowAsHtml(translate: {}, \
return \
'
\n'
@@ -1784,7 +1784,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
# Show a DM icon for DMs in the inbox timeline
if showDMicon:
- titleStr=titleStr+'
'
+ titleStr=titleStr+'
'
messageIdStr=''
if messageId:
@@ -1795,7 +1795,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
if isAnnounced:
if postJsonObject['object'].get('attributedTo'):
if postJsonObject['object']['attributedTo'].startswith(postJsonObject['actor']):
- titleStr+='
'
+ titleStr+='
'
else:
announceNickname=getNicknameFromActor(postJsonObject['object']['attributedTo'])
if announceNickname:
@@ -1808,7 +1808,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
addEmojiToDisplayName(baseDir,httpPrefix, \
nickname,domain, \
announceDisplayName,False)
- titleStr+='
'+announceDisplayName+''
+ titleStr+='
'+announceDisplayName+''
# show avatar of person replied to
announceActor=postJsonObject['object']['attributedTo']
announceAvatarUrl=getPersonAvatarUrl(baseDir,announceActor,personCache)
@@ -1816,22 +1816,22 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
replyAvatarImageInPost= \
'
'
else:
- titleStr+='
@'+announceNickname+'@'+announceDomain+''
+ titleStr+='
@'+announceNickname+'@'+announceDomain+''
else:
- titleStr+='
@unattributed'
+ titleStr+='
@unattributed'
else:
- titleStr+='
@unattributed'
+ titleStr+='
@unattributed'
else:
if postJsonObject['object'].get('inReplyTo'):
containerClassIcons='containericons darker'
containerClass='container darker'
#avatarPosition=' class="right"'
if postJsonObject['object']['inReplyTo'].startswith(postJsonObject['actor']):
- titleStr+='
'
+ titleStr+='
'
else:
if '/statuses/' in postJsonObject['object']['inReplyTo']:
replyActor=postJsonObject['object']['inReplyTo'].split('/statuses/')[0]
@@ -1847,7 +1847,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
addEmojiToDisplayName(baseDir,httpPrefix, \
nickname,domain, \
replyDisplayName,False)
- titleStr+='
'+replyDisplayName+''
+ titleStr+='
'+replyDisplayName+''
# show avatar of person replied to
replyAvatarUrl=getPersonAvatarUrl(baseDir,replyActor,personCache)
@@ -1855,19 +1855,19 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
replyAvatarImageInPost= \
'
'
else:
- titleStr+='
@'+replyNickname+'@'+replyDomain+''
+ titleStr+='
@'+replyNickname+'@'+replyDomain+''
else:
- titleStr+='
@unknown'
+ titleStr+='
@unknown'
else:
postDomain=postJsonObject['object']['inReplyTo'].replace('https://','').replace('http://','').replace('dat://','')
if '/' in postDomain:
postDomain=postDomain.split('/',1)[0]
if postDomain:
- titleStr+='
'+postDomain+''
+ titleStr+='
'+postDomain+''
attachmentStr=''
if postJsonObject['object'].get('attachment'):
if isinstance(postJsonObject['object']['attachment'], list):
@@ -1892,11 +1892,11 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
galleryStr+= \
'
\n'
attachmentStr+= \
'
' \
- '\n'
+ '
\n'
attachmentCtr+=1
elif mediaType=='video/mp4' or \
mediaType=='video/webm' or \
@@ -1963,14 +1963,14 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
avatarImageInPost= \
'
'
if showAvatarDropdown and fullDomain+'/users/'+nickname not in postJsonObject['actor']:
avatarImageInPost= \
'
'
publishedStr=postJsonObject['object']['published']
@@ -2001,7 +2001,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
announceTitle=translate['Undo the repeat']
announceStr= \
'
' \
- ''
+ '
'
likeStr=''
if not isModerationPost:
@@ -2015,7 +2015,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
likeTitle=translate['Undo the like']
likeStr= \
'
' \
- ''
+ '
'
deleteStr=''
if allowDeletion or \
@@ -2024,7 +2024,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
if '/users/'+nickname+'/' in postJsonObject['object']['id']:
deleteStr= \
'
' \
- ''
+ '
'
# change the background color for DMs in inbox timeline
if showDMicon:
@@ -2053,7 +2053,7 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
footerStr+='
'
else:
footerStr+=''
- footerStr+=''
+ footerStr+='
'
footerStr+=announceStr+likeStr+deleteStr
footerStr+='
'+publishedStr+''
footerStr+='
'
@@ -2197,7 +2197,7 @@ def htmlTimeline(translate: {},pageNumber: int, \
for line in f:
if len(line)>0:
# show follow approvals icon
- followApprovals='
'
break
moderationButtonStr=''
@@ -2211,11 +2211,11 @@ def htmlTimeline(translate: {},pageNumber: int, \
if boxName!='dm':
if not manuallyApproveFollowers:
- newPostButtonStr='
'
# banner and row of buttons
tlStr+= \
@@ -2229,9 +2229,9 @@ def htmlTimeline(translate: {},pageNumber: int, \
'