aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-03 20:39:43 -0800
committerfriendica <info@friendica.com>2013-02-03 20:39:43 -0800
commit13ff4b9f0150ae9118368d00d3dcc458f32ba68e (patch)
tree7ec2cb0b2a317c30d5b6038643a4ada7fc83e940 /mod
parentfb2b21626ece67862708600b11acb4c748c649f4 (diff)
downloadvolse-hubzilla-13ff4b9f0150ae9118368d00d3dcc458f32ba68e.tar.gz
volse-hubzilla-13ff4b9f0150ae9118368d00d3dcc458f32ba68e.tar.bz2
volse-hubzilla-13ff4b9f0150ae9118368d00d3dcc458f32ba68e.zip
bring back selective "mark unseen" on network page now that we can mark all unseen
Diffstat (limited to 'mod')
-rw-r--r--mod/display.php2
-rw-r--r--mod/network.php17
2 files changed, 6 insertions, 13 deletions
diff --git a/mod/display.php b/mod/display.php
index d109d9a9b..1fdac9c2c 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -109,8 +109,6 @@ function display_content(&$a) {
// $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1",
// intval($a->profile['uid'])
// );
-// if(count($r))
-// $a->page_contact = $r[0];
// $is_owner = ((local_user()) && (local_user() == $a->profile['profile_uid']) ? true : false);
diff --git a/mod/network.php b/mod/network.php
index cca69dc52..04390d3f1 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -674,26 +674,21 @@ function network_content(&$a, $update = 0, $load = false) {
else {
$items = array();
}
+
+ if($parents_str)
+ $update_unseen = ' AND parent IN ( ' . dbesc($parents_str) . ' )';
+
}
// logger('items: ' . count($items));
- // We aren't going to try and figure out at the item, group, and page
- // level which items you've seen and which you haven't. If you're looking
- // at the top level network page just mark everything seen.
-
- if((! $group) && (! $cid) && (! $star)) {
+ if($update_unseen)
$r = q("UPDATE `item` SET item_flags = ( item_flags ^ %d)
- WHERE (item_flags & %d) AND `uid` = %d",
+ WHERE (item_flags & %d) AND `uid` = %d $update_unseen ",
intval(ITEM_UNSEEN),
intval(ITEM_UNSEEN),
intval(local_user())
);
- }
-
-// fixme
- // Set this so that the conversation function can find out contact info for our wall-wall items
- $a->page_contact = $a->contact;
$mode = (($nouveau) ? 'network-new' : 'network');