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): if isBlocked(baseDir,nickname,domain,actorNickname,actorDomainFull):
blockUnblockStr='<a href="/users/'+nickname+'?unblock='+postJsonObject['actor']+';'+avatarUrl+'">Unblock</a>' 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= \ avatarDropdown= \
' <div class="dropdown-timeline">' \ ' <div class="dropdown-timeline">' \
' <img src="'+avatarUrl+'" '+avatarPosition+'/>' \ ' <img src="'+avatarUrl+'" '+avatarPosition+'/>' \
' <div class="dropdown-timeline-content">' \ ' <div class="dropdown-timeline-content">' \
' <a href="'+postJsonObject['actor']+'">Visit</a>'+ \ ' <a href="'+postJsonObject['actor']+'">Visit</a>'+ \
followUnfollowStr+ \ followUnfollowStr+blockUnblockStr+reportStr+ \
blockUnblockStr+ \
' <a href="/users/'+nickname+'?report='+postJsonObject['actor']+';'+avatarUrl+'">Report</a>' \
' </div>' \ ' </div>' \
' </div>' ' </div>'