do not show obj_type ACTIVITY_OBJ_FILE under activity notifications and do not mark those read in /network
This commit is contained in:
parent
f9b342c87d
commit
9717d4502f
@ -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) . "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -400,9 +400,11 @@ class Ping extends \Zotlabs\Web\Controller {
|
||||
$r = q("SELECT id, item_wall FROM item
|
||||
WHERE item_unseen = 1 and uid = %d
|
||||
$item_normal
|
||||
and author_xchan != '%s'",
|
||||
AND author_xchan != '%s'
|
||||
AND obj_type != '%s'",
|
||||
intval(local_channel()),
|
||||
dbesc($ob_hash)
|
||||
dbesc($ob_hash),
|
||||
dbesc(ACTIVITY_OBJ_FILE)
|
||||
);
|
||||
|
||||
if($r) {
|
||||
|
Reference in New Issue
Block a user