aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-05 16:37:32 -0800
committerfriendica <info@friendica.com>2013-01-05 16:37:32 -0800
commitf01d785aaeb13c1d790e196f01aa44433ee5f6b1 (patch)
treec64a4273023b9b7811feb6a4939594cb05a9af7a /mod
parent472a9057316063b556981d5049cc678232a36dbb (diff)
downloadvolse-hubzilla-f01d785aaeb13c1d790e196f01aa44433ee5f6b1.tar.gz
volse-hubzilla-f01d785aaeb13c1d790e196f01aa44433ee5f6b1.tar.bz2
volse-hubzilla-f01d785aaeb13c1d790e196f01aa44433ee5f6b1.zip
fix timeago updates, reset unseen counts on channel page, don't set nav selected on profile page
Diffstat (limited to 'mod')
-rw-r--r--mod/channel.php6
-rw-r--r--mod/profile.php3
2 files changed, 4 insertions, 5 deletions
diff --git a/mod/channel.php b/mod/channel.php
index c8a8d38ba..76d7da896 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -75,7 +75,6 @@ function channel_content(&$a, $update = 0, $load = false) {
$o = '';
- $is_owner = (((local_user()) && ($a->profile['profile_uid'] == local_user())) ? true : false);
if($update) {
// Ensure we've got a profile owner if updating.
@@ -87,6 +86,8 @@ function channel_content(&$a, $update = 0, $load = false) {
}
}
+ $is_owner = (((local_user()) && ($a->profile['profile_uid'] == local_user())) ? true : false);
+
$observer = $a->get_observer();
$ob_hash = (($observer) ? $observer['xchan_hash'] : '');
@@ -248,6 +249,7 @@ function channel_content(&$a, $update = 0, $load = false) {
if($is_owner) {
+dbg(1);
$r = q("UPDATE item SET item_flags = (item_flags ^ %d)
WHERE (item_flags & %d) AND (item_flags & %d) AND uid = %d ",
intval(ITEM_UNSEEN),
@@ -256,7 +258,7 @@ function channel_content(&$a, $update = 0, $load = false) {
intval(local_user())
);
}
-
+dbg(0);
$o .= conversation($a,$items,'channel',$update,'client');
diff --git a/mod/profile.php b/mod/profile.php
index 549536931..ce2d92f9b 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -65,9 +65,6 @@ function profile_content(&$a, $update = 0) {
$tab = 'profile';
$o = '';
- if($a->profile['profile_uid'] == local_user()) {
- nav_set_selected('home');
- }
$contact = null;
$remote_contact = false;