From 6693403433082a9bf6574e4d2e06459e4ebd8d9c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 20 Nov 2020 12:14:22 +0000 Subject: [PATCH] Don't show follow button for new actor --- webapp_profile.py | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index fb491036..e691ee96 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -225,25 +225,29 @@ def htmlProfileAfterSearch(cssCache: {}, profileDescriptionShort, avatarUrl, imageUrl) - profileStr += '
\n' - profileStr += '
\n' - profileStr += '
\n' - profileStr += \ - ' \n' - # profileStr += \ - # ' \n' - profileStr += \ - ' \n' - profileStr += \ - ' \n' - profileStr += '
\n' - profileStr += '
\n' - profileStr += '
\n' + domainFull = domain + if port: + if port != 80 and port != 443: + domainFull = domain + ':' + str(port) + + # only show follow and view buttons if this is not the news actor + if not (searchNickname == 'news' and searchDomainFull == domainFull): + profileStr += '
\n' + profileStr += '
\n' + profileStr += '
\n' + profileStr += \ + ' \n' + profileStr += \ + ' \n' + profileStr += \ + ' \n' + profileStr += '
\n' + profileStr += '
\n' + profileStr += '
\n' iconsPath = getIconsWebPath(baseDir) i = 0