Attachments now look fine.
This commit is contained in:
parent
f65d6531ca
commit
1c8e74edce
|
@ -1425,11 +1425,12 @@ function prepare_body(&$item, $attach = false, $preview = false) {
|
||||||
|
|
||||||
if (($filetype == 'image') AND ($item['network'] == NETWORK_OSTATUS)) {
|
if (($filetype == 'image') AND ($item['network'] == NETWORK_OSTATUS)) {
|
||||||
$icon = '<img class="attached" src="'.$the_url.'" alt="" title="'.$title.'">';
|
$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 {
|
} else {
|
||||||
$icon = '<div class="attachtype icon s22 type-' . $filetype . ' subtype-' . $filesubtype . '"></div>';
|
$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>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue