aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-03 23:38:08 -0800
committerfriendica <info@friendica.com>2013-03-03 23:38:08 -0800
commit4cfbdfa6dbed878565bab5172efaf67c8fda0886 (patch)
tree7173be75fb4b03f36eb91358bfe563a544d695fd /include/text.php
parent1aa7561a2ca63bd0989e94e9f62ae1e96e74b91d (diff)
downloadvolse-hubzilla-4cfbdfa6dbed878565bab5172efaf67c8fda0886.tar.gz
volse-hubzilla-4cfbdfa6dbed878565bab5172efaf67c8fda0886.tar.bz2
volse-hubzilla-4cfbdfa6dbed878565bab5172efaf67c8fda0886.zip
cleanup affinity tool
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php4
1 files changed, 3 insertions, 1 deletions
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 .= '<div class="clear"></div></div>';
}
+ $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']) ? ' <a href="' . $a->get_baseurl() . '/filerm/' . $item['id'] . '?f=&cat=' . urlencode($t['term']) . '" title="' . t('remove') . '" >' . t('[remove]') . '</a>' : '');
+ . (($writeable) ? ' <a href="' . $a->get_baseurl() . '/filerm/' . $item['id'] . '?f=&cat=' . urlencode($t['term']) . '" title="' . t('remove') . '" >' . t('[remove]') . '</a>' : '');
}
if(strlen($x))
$s .= '<div class="categorytags"><span>' . t('Categories:') . ' </span>' . $x . '</div>';