mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
add attachments to FB posts, fix paren string in statusnet, do not insert attach div into post if no attachments
This commit is contained in:
parent
61b730d567
commit
5a0690d940
6 changed files with 33 additions and 16 deletions
4
boot.php
4
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;
|
||||
}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue