mirror of https://gitlab.com/bashrc2/epicyon
Check for self-following
parent
6693403433
commit
752f16f335
|
@ -230,8 +230,15 @@ def htmlProfileAfterSearch(cssCache: {},
|
||||||
if port != 80 and port != 443:
|
if port != 80 and port != 443:
|
||||||
domainFull = domain + ':' + str(port)
|
domainFull = domain + ':' + str(port)
|
||||||
|
|
||||||
# only show follow and view buttons if this is not the news actor
|
followIsPermitted = True
|
||||||
if not (searchNickname == 'news' and searchDomainFull == domainFull):
|
if searchNickname == 'news' and searchDomainFull == domainFull:
|
||||||
|
# currently the news actor is not something you can follow
|
||||||
|
followIsPermitted = False
|
||||||
|
elif searchNickname == nickname and searchDomainFull == domainFull:
|
||||||
|
# don't follow yourself!
|
||||||
|
followIsPermitted = False
|
||||||
|
|
||||||
|
if followIsPermitted:
|
||||||
profileStr += '<div class="container">\n'
|
profileStr += '<div class="container">\n'
|
||||||
profileStr += ' <form method="POST" action="' + \
|
profileStr += ' <form method="POST" action="' + \
|
||||||
backUrl + '/followconfirm">\n'
|
backUrl + '/followconfirm">\n'
|
||||||
|
|
Loading…
Reference in New Issue