Webfingerの修正
This commit is contained in:
@@ -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",
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user