From 93e4ab9337e0e74146872d1aaa0e3a9b7538f9d3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 17 Dec 2020 19:44:12 +0000 Subject: [PATCH] Alternative actor representations --- daemon.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/daemon.py b/daemon.py index 8a1b15288..e6dcec2b6 100644 --- a/daemon.py +++ b/daemon.py @@ -1456,6 +1456,21 @@ class PubServer(BaseHTTPRequestHandler): elif moderationStr.startswith('submitInfo'): searchHandle = moderationText if searchHandle: + if '/@' in searchHandle: + searchNickname = \ + getNicknameFromActor(searchHandle) + searchDomain, searchPort = \ + getDomainFromActor(searchHandle) + searchHandle = \ + searchNickname + '@' + searchDomain + if '@' not in searchHandle: + if searchHandle.startswith('http'): + searchNickname = \ + getNicknameFromActor(searchHandle) + searchDomain, searchPort = \ + getDomainFromActor(searchHandle) + searchHandle = \ + searchNickname + '@' + searchDomain if '@' not in searchHandle: # is this a local nickname on this instance? localHandle = \