diff --git a/src/Site/Lib/Activitypub.php b/src/Site/Lib/Activitypub.php index 489f124..55df4b4 100644 --- a/src/Site/Lib/Activitypub.php +++ b/src/Site/Lib/Activitypub.php @@ -261,13 +261,14 @@ class ActivityPub { */ public function getWebfinger(): string { if (!ACTIVITYPUB_ENABLED) return ''; + $domain = str_replace(['http://', 'https://'], '', $this->domain); $webfinger = [ - 'subject' => "acct:{$this->actor}@{$this->domain}", + 'subject' => "acct:{$this->actor}@{$domain}", 'links' => [ [ 'rel' => 'self', 'type' => 'application/activity+json', - 'href' => "{$this->domain}/ap/actor", + 'href' => "{$domain}/ap/actor", ], ], ];