Webfingerの修正

諏訪子 <suwako@076.moe>、2026-01-20 17:10
コミット 22a7ca6ecbd1d811973148ffd465a6263d9df6c1 ・親 2a0956d ・ファイルを見る

1個のファイル、+3 -2

@@ -261,13 +261,14 @@
261261 */
262262 public function getWebfinger(): string {
263263 if (!ACTIVITYPUB_ENABLED) return '';
264+ $domain = str_replace(['http://', 'https://'], '', $this->domain);
264265 $webfinger = [
265- 'subject' => "acct:{$this->actor}@{$this->domain}",
266+ 'subject' => "acct:{$this->actor}@{$domain}",
266267 'links' => [
267268 [
268269 'rel' => 'self',
269270 'type' => 'application/activity+json',
270- 'href' => "{$this->domain}/ap/actor",
271+ 'href' => "{$domain}/ap/actor",
271272 ],
272273 ],
273274 ];