aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-04 16:45:10 -0700
committerfriendica <info@friendica.com>2012-05-04 16:45:10 -0700
commit7c6e8b30b28a3656f536ba338c3b124533fdadb7 (patch)
treeac00955489112770c366420a957e1fa3878cad22 /include
parent62ea9130feea694d733e6cbde9dec6c1b4a0ef51 (diff)
downloadvolse-hubzilla-7c6e8b30b28a3656f536ba338c3b124533fdadb7.tar.gz
volse-hubzilla-7c6e8b30b28a3656f536ba338c3b124533fdadb7.tar.bz2
volse-hubzilla-7c6e8b30b28a3656f536ba338c3b124533fdadb7.zip
only show remove category to item owner
Diffstat (limited to 'include')
-rw-r--r--include/text.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 4ae5d1333..5d6adaea5 100644
--- a/include/text.php
+++ b/include/text.php
@@ -930,7 +930,8 @@ function prepare_body($item,$attach = false) {
foreach($matches as $mtch) {
if(strlen($x))
$x .= ',';
- $x .= xmlify(file_tag_decode($mtch[1])) . ' <a href="' . $a->get_baseurl() . '/filerm/' . $item['id'] . '?f=&cat=' . xmlify(file_tag_decode($mtch[1])) . '" title="' . t('remove') . '" >' . t('[remove]') . '</a>';
+ $x .= xmlify(file_tag_decode($mtch[1]))
+ . ((local_user() == $item['uid']) ? ' <a href="' . $a->get_baseurl() . '/filerm/' . $item['id'] . '?f=&cat=' . xmlify(file_tag_decode($mtch[1])) . '" title="' . t('remove') . '" >' . t('[remove]') . '</a>' : '');
}
if(strlen($x))
$s .= '<div class="categorytags"><span>' . t('Categories:') . ' </span>' . $x . '</div>';