Attachments now look fine.

This commit is contained in:
Michael 2017-07-17 19:38:15 +00:00
förälder f65d6531ca
incheckning 1c8e74edce
1 ändrade filer med 2 tillägg och 1 borttagningar

Visa fil

@ -1425,11 +1425,12 @@ function prepare_body(&$item, $attach = false, $preview = false) {
if (($filetype == 'image') AND ($item['network'] == NETWORK_OSTATUS)) {
$icon = '<img class="attached" src="'.$the_url.'" alt="" title="'.$title.'">';
$s .= '<br><a href="' . strip_tags($the_url) . '" title="' . $title . '" class="attached" target="_blank" >' . $icon . '</a>';
} else {
$icon = '<div class="attachtype icon s22 type-' . $filetype . ' subtype-' . $filesubtype . '"></div>';
$as .= '<a href="' . strip_tags($the_url) . '" title="' . $title . '" class="attachlink" target="_blank" >' . $icon . '</a>';
}
$as .= '<a href="' . strip_tags($the_url) . '" title="' . $title . '" class="attachlink" target="_blank" >' . $icon . '</a>';
}
}
}