[COMPONENT][Posting] Fix request handling issues that resulted from splitting creation and controller

This commit is contained in:
2022-03-11 03:14:47 +00:00
parent cf05d3dbb0
commit d8108dbc32
4 changed files with 65 additions and 40 deletions

View File

@@ -53,7 +53,7 @@ class Posting extends Controller
locale: $data['language'],
scope: VisibilityScope::from($data['visibility']),
targets: isset($target) ? [$target] : [],
reply_to: $data['reply_to_id'],
reply_to: \array_key_exists('reply_to_id', $data) ? $data['reply_to_id'] : null,
attachments: $data['attachments'],
process_note_content_extra_args: $extra_args,
);