[PLUGIN][ActivityPub][Model][Note] Add name property as note title

This commit is contained in:
2022-02-17 18:45:30 +00:00
parent 0a741903a1
commit 27635d8ec2
3 changed files with 7 additions and 0 deletions

View File

@@ -229,6 +229,7 @@ class Posting extends Component
bool $flush_and_notify = true,
?string $rendered = null,
string $source = 'web',
?string $title = null,
): array {
[$activity, $note, $attention_ids] = self::storeLocalNote(
actor: $actor,
@@ -246,6 +247,7 @@ class Posting extends Component
source: $source
);
$note->setType(NoteType::PAGE);
$note->setTitle($title);
if ($flush_and_notify) {
// Flush before notification