diff options
author | Mario Vavti <mario@mariovavti.com> | 2025-02-11 19:14:11 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2025-02-11 19:14:11 +0100 |
commit | fc52d1b44f3e67a8c382547037339cab86b5dba8 (patch) | |
tree | 6b0bb10bb6a4f3044041de1f2728276743487cd6 /Zotlabs/Module/Conversation.php | |
parent | bfce562a46947961b0c5c8d54dbf63339f7cc370 (diff) | |
download | volse-hubzilla-fc52d1b44f3e67a8c382547037339cab86b5dba8.tar.gz volse-hubzilla-fc52d1b44f3e67a8c382547037339cab86b5dba8.tar.bz2 volse-hubzilla-fc52d1b44f3e67a8c382547037339cab86b5dba8.zip |
exclude uplinked items from those queries since they are unlikely to be the originals (sourced items from a channel at the same hub)
Diffstat (limited to 'Zotlabs/Module/Conversation.php')
-rw-r--r-- | Zotlabs/Module/Conversation.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Conversation.php b/Zotlabs/Module/Conversation.php index 6ceba69f2..0a1ba87d1 100644 --- a/Zotlabs/Module/Conversation.php +++ b/Zotlabs/Module/Conversation.php @@ -30,7 +30,7 @@ class Conversation extends Controller { dbesc(ACTIVITY_UNFOLLOW) ); - $item_normal = " and item.item_hidden = 0 and item.item_type = 0 and item.item_unpublished = 0 and item.item_delayed = 0 and item.item_blocked = 0 $item_normal_extra "; + $item_normal = " and item.item_hidden = 0 and item.item_type = 0 and item.item_unpublished = 0 and item.item_delayed = 0 and item.item_blocked = 0 and item.item_uplink = 0 $item_normal_extra "; $i = null; @@ -83,9 +83,9 @@ class Conversation extends Controller { // if we don't have a parent id belonging to the signer see if we can obtain one as a visitor that we have permission to access // with a bias towards those items owned by channels on this site (item_wall = 1) - $sql_extra = item_permissions_sql(0); - if (!$i) { + $sql_extra = item_permissions_sql(0); + $i = q("select id as item_id from item where mid = '%s' $item_normal $sql_extra order by item_wall desc limit 1", dbesc($r[0]['parent_mid']) ); |