New function to fetch item data especially for users
This commit is contained in:
parent
0280a46ab4
commit
6e10de9284
19 changed files with 133 additions and 77 deletions
|
|
@ -23,7 +23,7 @@ function subthread_content(App $a) {
|
|||
$item_id = (($a->argc > 1) ? notags(trim($a->argv[1])) : 0);
|
||||
|
||||
$condition = ["`parent` = ? OR `parent-uri` = ? AND `parent` = `id`", $item_id, $item_id];
|
||||
$item = Item::selectFirst(local_user(), [], $condition);
|
||||
$item = Item::selectFirst([], $condition);
|
||||
|
||||
if (empty($item_id) || !DBM::is_result($item)) {
|
||||
logger('subthread: no item ' . $item_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue