mirror of
https://github.com/friendica/friendica
synced 2024-11-19 08:23:40 +00:00
commit
ef09f7f958
1 changed files with 2 additions and 1 deletions
|
@ -199,7 +199,6 @@ class OEmbed
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret .= '</div>';
|
|
||||||
// add link to source if not present in "rich" type
|
// add link to source if not present in "rich" type
|
||||||
if ($j->type != 'rich' || !strpos($j->html, $embedurl)) {
|
if ($j->type != 'rich' || !strpos($j->html, $embedurl)) {
|
||||||
$ret .= '<h4>';
|
$ret .= '<h4>';
|
||||||
|
@ -238,6 +237,8 @@ class OEmbed
|
||||||
$ret .= '<a href="' . $embedurl . '" rel="oembed">' . $j->title . '</a>';
|
$ret .= '<a href="' . $embedurl . '" rel="oembed">' . $j->title . '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$ret .= '</div>';
|
||||||
|
|
||||||
$ret = str_replace("\n", "", $ret);
|
$ret = str_replace("\n", "", $ret);
|
||||||
return mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret));
|
return mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue