From 4cfbdfa6dbed878565bab5172efaf67c8fda0886 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 3 Mar 2013 23:38:08 -0800 Subject: cleanup affinity tool --- include/text.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/text.php b/include/text.php index 1cccc6090..3899d8915 100644 --- a/include/text.php +++ b/include/text.php @@ -1010,6 +1010,8 @@ function prepare_body($item,$attach = false) { $s .= '
'; } + $writeable = ((get_observer_hash() == $item['owner_xchan']) ? true : false); + $x = ''; $terms = get_terms_oftype($item['term'],TERM_CATEGORY); if($terms) { @@ -1017,7 +1019,7 @@ function prepare_body($item,$attach = false) { if(strlen($x)) $x .= ','; $x .= htmlspecialchars($t['term'],ENT_COMPAT,'UTF-8') - . ((local_user() == $item['uid']) ? ' ' . t('[remove]') . '' : ''); + . (($writeable) ? ' ' . t('[remove]') . '' : ''); } if(strlen($x)) $s .= '
' . t('Categories:') . ' ' . $x . '
'; -- cgit v1.2.3