From c2a51c91a648dcf08ad69c6f74c86d38578b533a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 21 Apr 2020 23:01:04 -0600 Subject: [PATCH] Update AP Helper --- app/Util/ActivityPub/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index ba3517314..b68b6fd84 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -416,7 +416,7 @@ class Helpers { if(!$profile) { $profile = new Profile(); $profile->domain = strtolower($domain); - $profile->username = strtolower(Purify::clean($remoteUsername)); + $profile->username = strtolower(Purify::clean($webfinger)); $profile->name = isset($res['name']) ? Purify::clean($res['name']) : 'user'; $profile->bio = isset($res['summary']) ? Purify::clean($res['summary']) : null; $profile->sharedInbox = isset($res['endpoints']) && isset($res['endpoints']['sharedInbox']) ? $res['endpoints']['sharedInbox'] : null;