mirror of
https://github.com/friendica/friendica
synced 2024-12-22 13:20:15 +00:00
Fix: Undefined array key "content-warning"
This commit is contained in:
parent
bda829665e
commit
058499cd92
1 changed files with 9 additions and 7 deletions
16
mod/item.php
16
mod/item.php
|
@ -234,13 +234,15 @@ function item_insert(int $uid, array $request, bool $preview, string $return_pat
|
|||
|
||||
function item_process(array $post, array $request, bool $preview, string $return_path): array
|
||||
{
|
||||
$post['self'] = true;
|
||||
$post['api_source'] = false;
|
||||
$post['attach'] = '';
|
||||
$post['title'] = trim($request['title'] ?? '');
|
||||
$post['body'] = $request['body'] ?? '';
|
||||
$post['location'] = trim($request['location'] ?? '');
|
||||
$post['coord'] = trim($request['coord'] ?? '');
|
||||
$post['self'] = true;
|
||||
$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'] ?? '');
|
||||
|
||||
$post = DI::contentItem()->addCategories($post, $request['category'] ?? '');
|
||||
|
||||
|
|
Loading…
Reference in a new issue