From 5a0690d9407588b7ed2c312c56290e4a9917597d Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 26 May 2011 06:46:55 -0700 Subject: add attachments to FB posts, fix paren string in statusnet, do not insert attach div into post if no attachments --- boot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 79e520150..cac272be5 100644 --- a/boot.php +++ b/boot.php @@ -2547,8 +2547,8 @@ function prepare_body($item,$attach = false) { return $s; $arr = explode(',',$item['attach']); - $s .= '
'; if(count($arr)) { + $s .= '
'; foreach($arr as $r) { $matches = false; $icon = ''; @@ -2572,8 +2572,8 @@ function prepare_body($item,$attach = false) { $s .= '' . $icon . ''; } } + $s .= '
'; } - $s .= '
'; return $s; }} -- cgit v1.2.3