mirror of
https://github.com/friendica/friendica
synced 2025-04-25 19:10:11 +00:00
API: Improve support for the summary field
This commit is contained in:
parent
4b6bbe3632
commit
e0468ac914
4 changed files with 8 additions and 5 deletions
|
@ -107,8 +107,8 @@ class Status extends BaseDataTransferObject
|
|||
$this->in_reply_to_account_id = (string)$item['parent-author-id'];
|
||||
}
|
||||
|
||||
$this->sensitive = $sensitive;
|
||||
$this->spoiler_text = $item['title'];
|
||||
$this->sensitive = $sensitive;
|
||||
$this->spoiler_text = $item['title'] ?: $item['content-warning'];
|
||||
|
||||
$visibility = ['public', 'private', 'unlisted'];
|
||||
$this->visibility = $visibility[$item['private']];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue