mirror of https://gitlab.com/bashrc2/epicyon
Don't send actor updates to self
parent
014aacedc1
commit
e4504593b6
8
posts.py
8
posts.py
|
@ -2511,6 +2511,14 @@ def sendToNamedAddresses(session, baseDir: str,
|
||||||
toDomain, toPort = getDomainFromActor(address)
|
toDomain, toPort = getDomainFromActor(address)
|
||||||
if not toDomain:
|
if not toDomain:
|
||||||
continue
|
continue
|
||||||
|
# Don't send profile/actor updates to yourself
|
||||||
|
if isProfileUpdate:
|
||||||
|
if nickname == toNickname and \
|
||||||
|
domainFull == toDomainFull:
|
||||||
|
if debug:
|
||||||
|
print('Not sending profile update to self. ' +
|
||||||
|
nickname + '@' + domainFull)
|
||||||
|
continue
|
||||||
if debug:
|
if debug:
|
||||||
domainFull = getFullDomain(domain, port)
|
domainFull = getFullDomain(domain, port)
|
||||||
toDomainFull = getFullDomain(toDomain, toPort)
|
toDomainFull = getFullDomain(toDomain, toPort)
|
||||||
|
|
Loading…
Reference in New Issue