From 0e9cf839d69f3e6039ec86f97b52174be9022ec5 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 19 Feb 2013 23:41:42 -0800 Subject: fix localdir privacy (again) --- include/dir_fns.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/dir_fns.php b/include/dir_fns.php index 2444e29ce..da74cc57f 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -41,6 +41,8 @@ function syncdirs($uid) { $hidden = (1 - intval($p[0]['publish'])); + logger('hidden: ' . $hidden); + $r = q("select xchan_flags from xchan where xchan_hash = '%s' limit 1", dbesc($p[0]['channel_hash']) ); @@ -52,10 +54,12 @@ function syncdirs($uid) { $new_flags = $r[0]['xchan_flags']; if($new_flags != $r[0]['xchan_flags']) { + $r = q("update xchan set xchan_flags = %d where xchan_hash = '%s' limit 1", intval($new_flags), - dbesc($xchan_hash) + dbesc($p[0]['channel_hash']) ); + } -- cgit v1.2.3