set unknown visibility

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/1685/head^2
Maxence Lange 2023-03-21 09:27:55 -01:00
rodzic 380a36330b
commit 2ddead83a7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -630,7 +630,7 @@ class Stream extends ACore implements IQueryRow, JsonSerializable {
"content" => $this->getContent(),
"sensitive" => $this->isSensitive(),
"spoiler_text" => $this->getSpoilerText(),
"visibility" => $this->getVisibility(),
'visibility' => ($this->getVisibility() === '') ? 'unknown' : $this->getVisibility(),
"language" => $this->getLanguage(),
"in_reply_to_id" => null,
"in_reply_to_account_id" => null,