From 22a7ca6ecbd1d811973148ffd465a6263d9df6c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Tue, 20 Jan 2026 17:10:15 +0900 Subject: [PATCH] =?UTF-8?q?Webfinger=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Site/Lib/Activitypub.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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", ], ], ];