From b49a6ff91b7bb31aee944c8fc06869272b022f66 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 1 Oct 2019 15:29:28 +0100 Subject: [PATCH] Users or profile --- inbox.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/inbox.py b/inbox.py index 095c215de..f62e32eb2 100644 --- a/inbox.py +++ b/inbox.py @@ -997,11 +997,9 @@ def receiveAnnounce(session,handle: str,baseDir: str, \ if postJsonObject['object'].get('attributedTo'): lookupActor=postJsonObject['object']['attributedTo'] if lookupActor: - if '/users/' in lookupActor: + if '/users/' in lookupActor or '/profile/' in lookupActor: if '/statuses/' in lookupActor: lookupActor=lookupActor.split('/statuses/')[0] - elif '/profile/' in lookupActor: - lookupActor=lookupActor.split('/profile/')[0] if debug: print('DEBUG: Obtaining actor for announce post '+lookupActor) @@ -1200,11 +1198,9 @@ def obtainAvatarForReplyPost(session,baseDir: str,httpPrefix: str,domain: str,pe lookupActor=postJsonObject['object']['inReplyTo'] if lookupActor: - if '/users/' in lookupActor: + if '/users/' in lookupActor or '/profile/' in lookupActor: if '/statuses/' in lookupActor: lookupActor=lookupActor.split('/statuses/')[0] - elif '/profile/' in lookupActor: - lookupActor=lookupActor.split('/profile/')[0] if debug: print('DEBUG: Obtaining actor for reply post '+lookupActor)