diff options
author | Friendika <info@friendika.com> | 2011-05-26 06:46:55 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-26 06:46:55 -0700 |
commit | 5a0690d9407588b7ed2c312c56290e4a9917597d (patch) | |
tree | 0c2f7c1f141b60113fac75d643d8959ab173e05b /boot.php | |
parent | 61b730d567ac4bb648a8d4399f35ca0d32328d40 (diff) | |
download | volse-hubzilla-5a0690d9407588b7ed2c312c56290e4a9917597d.tar.gz volse-hubzilla-5a0690d9407588b7ed2c312c56290e4a9917597d.tar.bz2 volse-hubzilla-5a0690d9407588b7ed2c312c56290e4a9917597d.zip |
add attachments to FB posts, fix paren string in statusnet, do not insert attach div into post if no attachments
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2547,8 +2547,8 @@ function prepare_body($item,$attach = false) { return $s; $arr = explode(',',$item['attach']); - $s .= '<div class="body-attach">'; if(count($arr)) { + $s .= '<div class="body-attach">'; foreach($arr as $r) { $matches = false; $icon = ''; @@ -2572,8 +2572,8 @@ function prepare_body($item,$attach = false) { $s .= '<a href="' . strip_tags($matches[1]) . '" title="' . $title . '" class="attachlink" target="external-link" >' . $icon . '</a>'; } } + $s .= '<div class="clear"></div></div>'; } - $s .= '<div class="clear"></div></div>'; return $s; }} |