Avatar also links to timeline

main
Bob Mottram 2020-11-12 23:17:37 +00:00
parent 34b0bd0e4d
commit 7c6924acd2
1 changed files with 5 additions and 3 deletions

View File

@ -288,9 +288,11 @@ def getProfileHeader(baseDir: str, nickname: str, domain: str,
'src="/users/' + nickname + '/image.png" /></a>\n' 'src="/users/' + nickname + '/image.png" /></a>\n'
htmlStr += ' <figcaption>\n' htmlStr += ' <figcaption>\n'
htmlStr += \ htmlStr += \
' <img loading="lazy" src="' + avatarUrl + '" ' \ ' <a href="/users/' + \
'title="' + avatarDescription + '" alt="' + \ nickname + '/' + defaultTimeline + '" title="' + \
avatarDescription + '" class="title">\n' translate['Switch to timeline view'] + '">\n' + \
' <img loading="lazy" src="' + avatarUrl + '" ' + \
' class="title"></a>\n'
htmlStr += ' <h1>' + displayName + '</h1>\n' htmlStr += ' <h1>' + displayName + '</h1>\n'
htmlStr += \ htmlStr += \
' <p><b>@' + nickname + '@' + domainFull + '</b><br>\n' ' <p><b>@' + nickname + '@' + domainFull + '</b><br>\n'