we need to actually ask for the id from the DB if we want to use it.
This commit is contained in:
parent
2f4ef7660c
commit
21f85b32ec
@ -1485,7 +1485,7 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false,$reque
|
|||||||
// As a side effect we will also do a preliminary check that we have the top-level-post, otherwise
|
// As a side effect we will also do a preliminary check that we have the top-level-post, otherwise
|
||||||
// processing it is pointless.
|
// processing it is pointless.
|
||||||
|
|
||||||
$r = q("select route from item where mid = '%s' and uid = %d limit 1",
|
$r = q("select route, id from item where mid = '%s' and uid = %d limit 1",
|
||||||
dbesc($arr['parent_mid']),
|
dbesc($arr['parent_mid']),
|
||||||
intval($channel['channel_id'])
|
intval($channel['channel_id'])
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user