From 6286c8238aff5b600d1f5b44a7ecc6484a321738 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@libreserver.org>
Date: Thu, 12 Oct 2023 13:23:40 +0100
Subject: [PATCH] Resolving wordpress-style actors

---
 posts.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/posts.py b/posts.py
index 93ea87e3c..2961fcd87 100644
--- a/posts.py
+++ b/posts.py
@@ -215,10 +215,7 @@ def get_user_url(wf_request: {}, source_id: int, debug: bool) -> str:
                       'contains single user instance actor ' +
                       str(source_id) + ' ' + str(link))
         else:
-            if '/@/' not in link['href']:
-                url = link['href'].replace('/@', '/users/')
-            else:
-                url = link['href']
+            url = link['href']
             if not contains_invalid_actor_url_chars(url):
                 return remove_html(url)
         url = link['href']
@@ -367,6 +364,8 @@ def get_person_box(signing_priv_key_pem: str, origin_domain: str,
     if not person_url:
         return None, None, None, None, None, None, None, None
 
+    print('get_person_box person_url: ' + person_url)
+
     # get the actor json from the url
     person_json = \
         _get_person_box_actor(session, base_dir, person_url,
@@ -5122,7 +5121,7 @@ def get_public_posts_of_person(base_dir: str, nickname: str, domain: str,
         sys.exit()
 
     if debug:
-        print('Getting the outbox for ' + handle)
+        print('\nGetting the outbox for ' + handle)
     (person_url, _, _, person_id, _, _,
      _, _) = get_person_box(signing_priv_key_pem,
                             origin_domain,