aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-02-01 23:09:45 -0800
committerredmatrix <git@macgirvin.com>2016-02-01 23:09:45 -0800
commit7f453949a17f4d3cd755ab5fc96be21396c9cc91 (patch)
treee95effc0c1d366aaf373481e8de401a32de9790e /include/oembed.php
parent38f385f67d0f998f0958cfe3ea7d14772b977162 (diff)
downloadvolse-hubzilla-7f453949a17f4d3cd755ab5fc96be21396c9cc91.tar.gz
volse-hubzilla-7f453949a17f4d3cd755ab5fc96be21396c9cc91.tar.bz2
volse-hubzilla-7f453949a17f4d3cd755ab5fc96be21396c9cc91.zip
minor tweaks
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-xinclude/oembed.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 6382d0368..ff52545ee 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -204,13 +204,13 @@ function oembed_format_object($j){
// add link to source if not present in "rich" type
if ( $j->type!='rich' || !strpos($j->html,$embedurl) ){
$embedlink = (isset($j->title))?$j->title:$embedurl;
- $ret .= '<span class="bookmark-identifier">#^</span>' . "<a href='$embedurl' rel='oembed'>$embedlink</a>";
- $ret .= "<br>";
+ $ret .= '<br /><span class="bookmark-identifier">#^</span>' . "<a href='$embedurl' rel='oembed'>$embedlink</a>";
+ $ret .= "<br />";
if (isset($j->author_name)) $ret.=" by ".$j->author_name;
if (isset($j->provider_name)) $ret.=" on ".$j->provider_name;
} else {
// add <a> for html2bbcode conversion
- $ret .= "<br /><a href='$embedurl' rel='oembed'/>";
+ $ret .= "<br /><a href='$embedurl' rel='oembed'>$embedurl</a>";
}
$ret.="<br style='clear:left'></span>";
return mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret));