Don't show block button for this domain

Moderators blocking their own domain would be silly
merge-requests/8/head
Bob Mottram 2020-12-16 16:51:57 +00:00
parent 7d5b639d64
commit 146d1413c3
1 changed files with 4 additions and 2 deletions

View File

@ -115,8 +115,10 @@ def htmlAccountInfo(cssCache: {}, translate: {},
infoForm += \
'<a href="' + usersPath + '?blockdomain=' + postDomain + \
'?handle=' + searchHandle + '">'
infoForm += '<button class="button"><span>' + \
translate['Block'] + '</span></button></a>'
if postDomain != domain:
infoForm += '<button class="button"><span>' + \
translate['Block'] + '</span></button>'
infoForm += '</a>'
infoForm += '<br>'
infoForm += '</div>'