Avoid duplicates in alternate addresses

main
Bob Mottram 2021-01-23 10:11:56 +00:00
parent 7b91026802
commit 36e9bd1628
1 changed files with 2 additions and 1 deletions

View File

@ -4335,7 +4335,8 @@ class PubServer(BaseHTTPRequestHandler):
for altActor in newAlsoKnownAs: for altActor in newAlsoKnownAs:
altActor = altActor.strip() altActor = altActor.strip()
if '://' in altActor and '.' in altActor: if '://' in altActor and '.' in altActor:
alsoKnownAs.append(altActor) if altActor not in alsoKnownAs:
alsoKnownAs.append(altActor)
actorJson['alsoKnownAs'] = alsoKnownAs actorJson['alsoKnownAs'] = alsoKnownAs
actorChanged = True actorChanged = True
else: else: