X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fthreads.php;h=79340ab2cbe359ab985e26f3fbd636f9129d5adf;hb=5e188a9250d42a82cd6b8e84d65875f3bc6067fb;hp=a487d6e01f859bfb66da61b0f60bb3935314612c;hpb=3463a442badb575f024a090f371d4f75c89d9b78;p=friendica.git diff --git a/include/threads.php b/include/threads.php index a487d6e01f..79340ab2cb 100644 --- a/include/threads.php +++ b/include/threads.php @@ -22,6 +22,15 @@ function add_thread($itemid, $onlyshadow = false) { } } +/** + * @brief Add a shadow entry for a given item id + * + * We store every public item entry additionally with the user id "0". + * This is used for the community page and for the search. + * It is planned that in the future we will store public item entries only once. + * + * @param integer $itemid Item ID that should be added + */ function add_shadow_thread($itemid) { $items = q("SELECT `uid`, `wall`, `private`, `moderated`, `visible`, `contact-id`, `deleted`, `network` FROM `item` WHERE `id` = %d AND (`parent` = %d OR `parent` = 0) LIMIT 1", intval($itemid), intval($itemid));