diff options
author | Mario <mario@mariovavti.com> | 2022-02-21 10:16:21 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-21 10:16:21 +0000 |
commit | 5b1a0d93b93e8f2cf1bd770ec9d03a0871105bc3 (patch) | |
tree | 81c7e1ea1e9a766cf6a60bed49be97f081845bc5 /Zotlabs/Module | |
parent | 7e04662a9cf88039273e08b050e0fb6235346b51 (diff) | |
download | volse-hubzilla-5b1a0d93b93e8f2cf1bd770ec9d03a0871105bc3.tar.gz volse-hubzilla-5b1a0d93b93e8f2cf1bd770ec9d03a0871105bc3.tar.bz2 volse-hubzilla-5b1a0d93b93e8f2cf1bd770ec9d03a0871105bc3.zip |
this was required for old style forum posts only and should not be needed anymore
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Network.php | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php index 016a0a309..f4f6cc8d1 100644 --- a/Zotlabs/Module/Network.php +++ b/Zotlabs/Module/Network.php @@ -272,15 +272,17 @@ class Network extends \Zotlabs\Web\Controller { $likes_sql = " AND verb NOT IN ('" . dbesc(ACTIVITY_LIKE) . "', '" . dbesc(ACTIVITY_DISLIKE) . "') "; // This is for nouveau view public forum cid queries (if a forum notification is clicked) - $p = q("SELECT oid AS parent FROM term WHERE uid = %d AND ttype = %d AND term = '%s'", - intval(local_channel()), - intval(TERM_FORUM), - dbesc($cid_r[0]['xchan_name']) - ); - - $p_str = ids_to_querystr($p, 'parent'); - if($p_str) - $p_sql = " OR item.parent IN ( $p_str ) "; + //$p = q("SELECT oid AS parent FROM term WHERE uid = %d AND ttype = %d AND term = '%s'", + //intval(local_channel()), + //intval(TERM_FORUM), + //dbesc($cid_r[0]['xchan_name']) + //); + + //$p_str = ids_to_querystr($p, 'parent'); + + $p_sql = ''; + //if($p_str) + //$p_sql = " OR item.parent IN ( $p_str ) "; $sql_extra = " AND ( owner_xchan = '" . protect_sprintf(dbesc($cid_r[0]['abook_xchan'])) . "' OR owner_xchan = '" . protect_sprintf(dbesc($cid_r[0]['abook_xchan'])) . "' $p_sql ) AND item_unseen = 1 $likes_sql "; } |