]> git.mxchange.org Git - friendica.git/commitdiff
Avoid notice "Undefined index: post-type"
authorMichael <heluecht@pirati.ca>
Thu, 8 Apr 2021 19:53:59 +0000 (19:53 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 8 Apr 2021 19:53:59 +0000 (19:53 +0000)
include/conversation.php

index ff8ecbad0054f59e18a6440a65ae2b0cafe9ee7d..eae7fd72749bd8bf6b9f7e49e02991da34b142fa 100644 (file)
@@ -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);