diff --git a/lib/Controller/LocalController.php b/lib/Controller/LocalController.php index 5548f1f7..b75e237f 100644 --- a/lib/Controller/LocalController.php +++ b/lib/Controller/LocalController.php @@ -124,14 +124,10 @@ class LocalController extends Controller { * * @NoAdminRequired */ - public function postCreate(string $content = '', $to = null, string $type = null, ?string $replyTo = null, $attachments = null, ?string $hashtags = null): DataResponse { + public function postCreate(string $content = '', array $to = [], string $type = null, ?string $replyTo = null, $attachments = null, array $hashtags = []): DataResponse { $content = $content ?: ''; - $to = is_string($to) ? [$to] : $to; - $to = $to ?? []; $replyTo = $replyTo ?? ''; $type = $type ?? Stream::TYPE_PUBLIC; - $hashtags = $hashtags === '' ? [] : $hashtags; - $hashtags = $hashtags ?? []; $attachments = $attachments ?? []; try { diff --git a/src/components/Composer/Composer.vue b/src/components/Composer/Composer.vue index 9ef2c37a..62d4f6ca 100644 --- a/src/components/Composer/Composer.vue +++ b/src/components/Composer/Composer.vue @@ -25,7 +25,6 @@