aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Pubstream.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-09-07 09:26:06 +0000
committerMario <mario@mariovavti.com>2021-09-07 09:26:06 +0000
commit1d3a59e0cdbbea476029a6b0c3b7c0045144fa31 (patch)
tree531f11c9e4843606ffb992f790a258cb0847adb9 /Zotlabs/Module/Pubstream.php
parentfe62b245ca9bac0aeaf58e43011eb12321d05c20 (diff)
downloadvolse-hubzilla-1d3a59e0cdbbea476029a6b0c3b7c0045144fa31.tar.gz
volse-hubzilla-1d3a59e0cdbbea476029a6b0c3b7c0045144fa31.tar.bz2
volse-hubzilla-1d3a59e0cdbbea476029a6b0c3b7c0045144fa31.zip
resolve some vsprintf issues
Diffstat (limited to 'Zotlabs/Module/Pubstream.php')
-rw-r--r--Zotlabs/Module/Pubstream.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/Zotlabs/Module/Pubstream.php b/Zotlabs/Module/Pubstream.php
index e1a95be67..583974e22 100644
--- a/Zotlabs/Module/Pubstream.php
+++ b/Zotlabs/Module/Pubstream.php
@@ -206,7 +206,7 @@ class Pubstream extends \Zotlabs\Web\Controller {
}
else {
// Fetch a page full of parent items for this page
- $r = q("SELECT item.id AS item_id FROM item
+ $r = dbq("SELECT item.id AS item_id FROM item
left join abook on ( item.author_xchan = abook.abook_xchan $abook_uids )
$net_query
WHERE true $uids and item.item_thread_top = 1 $item_normal
@@ -228,7 +228,7 @@ class Pubstream extends \Zotlabs\Web\Controller {
);
}
else {
- $r = q("SELECT parent AS item_id FROM item
+ $r = dbq("SELECT parent AS item_id FROM item
left join abook on item.author_xchan = abook.abook_xchan
$net_query
WHERE true $uids $item_normal_update
@@ -246,11 +246,10 @@ class Pubstream extends \Zotlabs\Web\Controller {
$parents_str = ids_to_querystr($r,'item_id');
- $items = q("SELECT item.*, item.id AS item_id FROM item
+ $items = dbq("SELECT item.*, item.id AS item_id FROM item
WHERE true $uids $item_normal
- AND item.parent IN ( %s )
- $sql_extra ",
- dbesc($parents_str)
+ AND item.parent IN ( $parents_str )
+ $sql_extra"
);
// use effective_uid param of xchan_query to help sort out comment permission