aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-20 20:34:00 -0700
committerfriendica <info@friendica.com>2013-06-20 20:34:00 -0700
commit58ac92f4e162abdad2d2f259bbf6c58029f65b86 (patch)
tree56262a4744baadcc6d61ed5f393cf3c29f330532 /include/text.php
parent61601dc23d3e8305720bfc4e4e6b6dbd7b85f546 (diff)
downloadvolse-hubzilla-58ac92f4e162abdad2d2f259bbf6c58029f65b86.tar.gz
volse-hubzilla-58ac92f4e162abdad2d2f259bbf6c58029f65b86.tar.bz2
volse-hubzilla-58ac92f4e162abdad2d2f259bbf6c58029f65b86.zip
bring back the body tag list - though it really belongs in the templates. It's difficult to debug community tags when you can't see any tags (except those the author typed in).
Diffstat (limited to 'include/text.php')
-rwxr-xr-xinclude/text.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index afe2490e7..9a20625a6 100755
--- a/include/text.php
+++ b/include/text.php
@@ -1025,6 +1025,20 @@ function prepare_body($item,$attach = false) {
$s .= '<div class="clear"></div></div>';
}
+ if(is_array($item['term']) && count($item['term'])) {
+ $tstr = '';
+ foreach($item['term'] as $t) {
+ $t1 = format_term_for_display($t);
+ if($t1) {
+ if($tstr)
+ $tstr .= ' ';
+ $tstr .= $t1;
+ }
+ }
+ if($tstr)
+ $s .= '<br /><div class="posttags">' . $tstr . '</div>';
+ }
+
$writeable = ((get_observer_hash() == $item['owner_xchan']) ? true : false);
$x = '';