From 36e9bd1628fd22a4b69171d4d910c2ba8dce08b5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 23 Jan 2021 10:11:56 +0000 Subject: [PATCH] Avoid duplicates in alternate addresses --- daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 6afb1ef54..2af845979 100644 --- a/daemon.py +++ b/daemon.py @@ -4335,7 +4335,8 @@ class PubServer(BaseHTTPRequestHandler): for altActor in newAlsoKnownAs: altActor = altActor.strip() if '://' in altActor and '.' in altActor: - alsoKnownAs.append(altActor) + if altActor not in alsoKnownAs: + alsoKnownAs.append(altActor) actorJson['alsoKnownAs'] = alsoKnownAs actorChanged = True else: