kopia lustrzana https://github.com/nextcloud/social
rodzic
1786f1f446
commit
cb07ab075e
|
@ -125,7 +125,6 @@ class LocalController extends Controller {
|
|||
* @NoAdminRequired
|
||||
*/
|
||||
public function postCreate(string $content = '', $to = null, string $type = null, ?string $replyTo = null, $attachments = null, ?string $hashtags = null): DataResponse {
|
||||
|
||||
$content = $content ?? '';
|
||||
$to = is_string($to) ? [$to] : $to;
|
||||
$to = $to ?? [];
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
// SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
|
||||
|
|
Ładowanie…
Reference in New Issue