Don't show follow button for new actor

main
Bob Mottram 2020-11-20 12:14:22 +00:00
parent 4c13bcf9d8
commit 6693403433
1 changed files with 23 additions and 19 deletions

View File

@ -225,25 +225,29 @@ def htmlProfileAfterSearch(cssCache: {},
profileDescriptionShort, profileDescriptionShort,
avatarUrl, imageUrl) avatarUrl, imageUrl)
profileStr += '<div class="container">\n' domainFull = domain
profileStr += ' <form method="POST" action="' + \ if port:
backUrl + '/followconfirm">\n' if port != 80 and port != 443:
profileStr += ' <center>\n' domainFull = domain + ':' + str(port)
profileStr += \
' <input type="hidden" name="actor" value="' + \ # only show follow and view buttons if this is not the news actor
personUrl + '">\n' if not (searchNickname == 'news' and searchDomainFull == domainFull):
# profileStr += \ profileStr += '<div class="container">\n'
# ' <a href="' + backUrl + '"><button class="button">' + \ profileStr += ' <form method="POST" action="' + \
# translate['Go Back'] + '</button></a>\n' backUrl + '/followconfirm">\n'
profileStr += \ profileStr += ' <center>\n'
' <button type="submit" class="button" name="submitYes">' + \ profileStr += \
translate['Follow'] + '</button>\n' ' <input type="hidden" name="actor" value="' + \
profileStr += \ personUrl + '">\n'
' <button type="submit" class="button" name="submitView">' + \ profileStr += \
translate['View'] + '</button>\n' ' <button type="submit" class="button" name="submitYes">' + \
profileStr += ' </center>\n' translate['Follow'] + '</button>\n'
profileStr += ' </form>\n' profileStr += \
profileStr += '</div>\n' ' <button type="submit" class="button" name="submitView">' + \
translate['View'] + '</button>\n'
profileStr += ' </center>\n'
profileStr += ' </form>\n'
profileStr += '</div>\n'
iconsPath = getIconsWebPath(baseDir) iconsPath = getIconsWebPath(baseDir)
i = 0 i = 0