Webfingerの修正
諏訪子 <suwako@076.moe>、2026-01-20 17:10
コミット 22a7ca6ecbd1d811973148ffd465a6263d9df6c1
・親 2a0956d
・ファイルを見る
1個のファイル、+3 -2
| @@ -261,13 +261,14 @@ | ||
| 261 | 261 | */ |
| 262 | 262 | public function getWebfinger(): string { |
| 263 | 263 | if (!ACTIVITYPUB_ENABLED) return ''; |
| 264 | + $domain = str_replace(['http://', 'https://'], '', $this->domain); | |
| 264 | 265 | $webfinger = [ |
| 265 | - 'subject' => "acct:{$this->actor}@{$this->domain}", | |
| 266 | + 'subject' => "acct:{$this->actor}@{$domain}", | |
| 266 | 267 | 'links' => [ |
| 267 | 268 | [ |
| 268 | 269 | 'rel' => 'self', |
| 269 | 270 | 'type' => 'application/activity+json', |
| 270 | - 'href' => "{$this->domain}/ap/actor", | |
| 271 | + 'href' => "{$domain}/ap/actor", | |
| 271 | 272 | ], |
| 272 | 273 | ], |
| 273 | 274 | ]; |