[ActivityPub][Postman] Fill To and CC with mentions

This commit is contained in:
2021-12-21 14:13:12 +00:00
parent 48b2c8c04e
commit 1865d2b41e
2 changed files with 6 additions and 1 deletions

View File

@@ -233,6 +233,7 @@ class Note extends Model
'content' => $object->getRendered(),
'attachment' => [],
'tag' => [],
'directMessage' => false, // // TODO: implement proper scope address
];
// Mentions
@@ -242,6 +243,7 @@ class Note extends Model
'href' => ($href = $mention->getUri()),
'name' => '@'.$mention->getNickname().'@'.parse_url($href, PHP_URL_HOST)
];
$attr['cc'][] = $href;
}
// Attachments