From 343568d747f77536415923313164854b12776435 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 8 Apr 2021 19:53:59 +0000 Subject: [PATCH] Avoid notice "Undefined index: post-type" --- include/conversation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/conversation.php b/include/conversation.php index ff8ecbad00..eae7fd7274 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -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);