mirror of
https://github.com/friendica/friendica
synced 2024-11-10 11:02:53 +00:00
Merge pull request #10133 from annando/notice
Avoid notice "Undefined index: post-type"
This commit is contained in:
commit
425a225cce
1 changed files with 1 additions and 1 deletions
|
@ -878,7 +878,7 @@ function conversation_fetch_items(array $parent, array $items, array $condition,
|
|||
$condition[0] .= " AND NOT `author-hidden`";
|
||||
}
|
||||
|
||||
$thread_items = Post::selectForUser(local_user(), array_merge(Item::DISPLAY_FIELDLIST, ['pinned', 'contact-uid', 'gravity', 'post-reason']), $condition, $params);
|
||||
$thread_items = Post::selectForUser(local_user(), array_merge(Item::DISPLAY_FIELDLIST, ['pinned', 'contact-uid', 'gravity', 'post-type', 'post-reason']), $condition, $params);
|
||||
|
||||
$comments = conversation_fetch_comments($thread_items, $parent['pinned'] ?? false, $activity);
|
||||
|
||||
|
|
Loading…
Reference in a new issue