Avatar also links to timeline

merge-requests/8/head
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'
htmlStr += ' <figcaption>\n'
htmlStr += \
' <img loading="lazy" src="' + avatarUrl + '" ' \
'title="' + avatarDescription + '" alt="' + \
avatarDescription + '" class="title">\n'
' <a href="/users/' + \
nickname + '/' + defaultTimeline + '" title="' + \
translate['Switch to timeline view'] + '">\n' + \
' <img loading="lazy" src="' + avatarUrl + '" ' + \
' class="title"></a>\n'
htmlStr += ' <h1>' + displayName + '</h1>\n'
htmlStr += \
' <p><b>@' + nickname + '@' + domainFull + '</b><br>\n'