From d4a6a2437b43eea19abfedb10baa42184a3db919 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 2 Jun 2021 20:06:30 +0100 Subject: [PATCH] Duplicate definitions --- person.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/person.py b/person.py index 84d0af727..46affd364 100644 --- a/person.py +++ b/person.py @@ -1323,12 +1323,10 @@ def getActorJson(handle: str, http: bool, gnunet: bool, if not personUrl: # try single user instance personUrl = httpPrefix + '://' + domain - profileStr = 'https://www.w3.org/ns/activitystreams' asHeader = { 'Accept': 'application/ld+json; profile="' + profileStr + '"' } if '/channel/' in personUrl or '/accounts/' in personUrl: - profileStr = 'https://www.w3.org/ns/activitystreams' asHeader = { 'Accept': 'application/ld+json; profile="' + profileStr + '"' } @@ -1341,7 +1339,6 @@ def getActorJson(handle: str, http: bool, gnunet: bool, pprint(personJson) return personJson else: - profileStr = 'https://www.w3.org/ns/activitystreams' asHeader = { 'Accept': 'application/jrd+json; profile="' + profileStr + '"' }