Report with the message link

master
Bob Mottram 2019-08-11 14:10:24 +01:00
parent 6a413809a3
commit d6cba049e1
1 changed files with 5 additions and 3 deletions

View File

@ -840,14 +840,16 @@ def individualPostAsHtml(baseDir: str, \
if isBlocked(baseDir,nickname,domain,actorNickname,actorDomainFull):
blockUnblockStr='<a href="/users/'+nickname+'?unblock='+postJsonObject['actor']+';'+avatarUrl+'">Unblock</a>'
reportStr=''
if messageId:
reportStr='<a href="/users/'+nickname+'?report='+messageId+';'+avatarUrl+'">Report</a>'
avatarDropdown= \
' <div class="dropdown-timeline">' \
' <img src="'+avatarUrl+'" '+avatarPosition+'/>' \
' <div class="dropdown-timeline-content">' \
' <a href="'+postJsonObject['actor']+'">Visit</a>'+ \
followUnfollowStr+ \
blockUnblockStr+ \
' <a href="/users/'+nickname+'?report='+postJsonObject['actor']+';'+avatarUrl+'">Report</a>' \
followUnfollowStr+blockUnblockStr+reportStr+ \
' </div>' \
' </div>'