mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:10:12 +00:00
Added documentation
This commit is contained in:
parent
3463a442ba
commit
80efc422bf
4 changed files with 22 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue