Pleroma-Servers are now detected and displayed in the statistics

This commit is contained in:
Michael 2017-08-29 16:40:08 +00:00
parent c948e4cdc3
commit 1893c3df16
3 changed files with 15 additions and 5 deletions

View file

@ -1425,6 +1425,7 @@ function prepare_body(&$item, $attach = false, $preview = false) {
$title .= ' ' . $mtch[2] . ' ' . t('bytes');
if (($filetype == 'image') AND ($item['network'] == NETWORK_OSTATUS)) {
/// @todo Respect the spoiler for mastodon
$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 {