mirror of https://gitlab.com/bashrc2/epicyon
Don't attempt to follow if the actor has no followers collection
parent
3b94048e28
commit
35f6921d7e
|
@ -202,7 +202,10 @@ def htmlProfileAfterSearch(cssCache: {},
|
||||||
domainFull = getFullDomain(domain, port)
|
domainFull = getFullDomain(domain, port)
|
||||||
|
|
||||||
followIsPermitted = True
|
followIsPermitted = True
|
||||||
if searchNickname == 'news' and searchDomainFull == domainFull:
|
if not profileJson.get('followers'):
|
||||||
|
# no followers collection specified within actor
|
||||||
|
followIsPermitted = False
|
||||||
|
elif searchNickname == 'news' and searchDomainFull == domainFull:
|
||||||
# currently the news actor is not something you can follow
|
# currently the news actor is not something you can follow
|
||||||
followIsPermitted = False
|
followIsPermitted = False
|
||||||
elif searchNickname == nickname and searchDomainFull == domainFull:
|
elif searchNickname == nickname and searchDomainFull == domainFull:
|
||||||
|
|
Loading…
Reference in New Issue