mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:20:15 +00:00
Merge pull request #14167 from annando/warning
Fix: Undefined array key "content-warning"
This commit is contained in:
commit
a5e12c82df
1 changed files with 9 additions and 7 deletions
|
@ -238,6 +238,8 @@ function item_process(array $post, array $request, bool $preview, string $return
|
|||
$post['api_source'] = false;
|
||||
$post['attach'] = '';
|
||||
$post['title'] = trim($request['title'] ?? '');
|
||||
$post['content-warning'] = trim($request['summary'] ?? '');
|
||||
$post['sensitive'] = !empty($request['sensitive'] ?? false);
|
||||
$post['body'] = $request['body'] ?? '';
|
||||
$post['location'] = trim($request['location'] ?? '');
|
||||
$post['coord'] = trim($request['coord'] ?? '');
|
||||
|
|
Loading…
Reference in a new issue