diff options
author | git-marijus <mario@mariovavti.com> | 2017-07-28 23:01:39 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-07-28 23:01:39 +0200 |
commit | 9717d4502f460e56d76eb52c244124e2b995677c (patch) | |
tree | cbdf877872300ace860731e11829ed2090d558ad /Zotlabs/Module/Network.php | |
parent | f9b342c87d4129c457244861b3b841cb9dfe139b (diff) | |
download | volse-hubzilla-9717d4502f460e56d76eb52c244124e2b995677c.tar.gz volse-hubzilla-9717d4502f460e56d76eb52c244124e2b995677c.tar.bz2 volse-hubzilla-9717d4502f460e56d76eb52c244124e2b995677c.zip |
do not show obj_type ACTIVITY_OBJ_FILE under activity notifications and do not mark those read in /network
Diffstat (limited to 'Zotlabs/Module/Network.php')
-rw-r--r-- | Zotlabs/Module/Network.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php index 45623c7b0..a1b70fea0 100644 --- a/Zotlabs/Module/Network.php +++ b/Zotlabs/Module/Network.php @@ -534,12 +534,13 @@ class Network extends \Zotlabs\Web\Controller { if($parents_str) { $update_unseen = " AND ( id IN ( " . dbesc($parents_str) . " )"; + $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) . " )"; + $update_unseen = " AND parent IN ( " . dbesc($parents_str) . " ) AND obj_type != " . dbesc(ACTIVITY_OBJ_FILE) . ""; } } } |