aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-07-29 11:37:35 +0200
committergit-marijus <mario@mariovavti.com>2017-07-29 11:37:35 +0200
commitc4e0e20eb3304025695aa244d9efa739909a65dd (patch)
treea4ace32820b2501869fdfa89b9974f50544a9a34 /Zotlabs
parenteedee6d0a1111625993c1e9927af7e830c5e9c64 (diff)
downloadvolse-hubzilla-c4e0e20eb3304025695aa244d9efa739909a65dd.tar.gz
volse-hubzilla-c4e0e20eb3304025695aa244d9efa739909a65dd.tar.bz2
volse-hubzilla-c4e0e20eb3304025695aa244d9efa739909a65dd.zip
switch back to filter by ACTIVITY_OBJ_FILE for marking items read in /network since item_notshown is also used for likes
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Network.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php
index 25e7adb49..5c97ad473 100644
--- a/Zotlabs/Module/Network.php
+++ b/Zotlabs/Module/Network.php
@@ -534,13 +534,13 @@ class Network extends \Zotlabs\Web\Controller {
if($parents_str) {
$update_unseen = " AND ( id IN ( " . dbesc($parents_str) . " )";
- $update_unseen .= " AND item_notshown = 0";
+ $update_unseen .= " AND obj_type != " . dbesc(ACTIVITY_OBJ_FILE) . "";
$update_unseen .= " OR ( parent IN ( " . dbesc($parents_str) . " ) AND verb in ( '" . dbesc(ACTIVITY_LIKE) . "','" . dbesc(ACTIVITY_DISLIKE) . "' ))) ";
}
}
else {
if($parents_str) {
- $update_unseen = " AND parent IN ( " . dbesc($parents_str) . " ) AND item_notshown = 0";
+ $update_unseen = " AND parent IN ( " . dbesc($parents_str) . " ) AND obj_type != " . dbesc(ACTIVITY_OBJ_FILE) . "";
}
}
}