aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-26 06:46:55 -0700
committerFriendika <info@friendika.com>2011-05-26 06:46:55 -0700
commit5a0690d9407588b7ed2c312c56290e4a9917597d (patch)
tree0c2f7c1f141b60113fac75d643d8959ab173e05b /boot.php
parent61b730d567ac4bb648a8d4399f35ca0d32328d40 (diff)
downloadvolse-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.php4
1 files changed, 2 insertions, 2 deletions
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 .= '<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;
}}