aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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>';