X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Foembed.php;h=06a37d8e4845d427ef14e81b08e7cb9f5b5ff76b;hb=5e1335ac892ce07bf7b1a3a043f71b8abbed8dba;hp=10d458ff38c016f54563dd86e46eaefa6f00bae7;hpb=570a22de7425e2a486b02e3b43a4b4b1ece552af;p=friendica.git
diff --git a/include/oembed.php b/include/oembed.php
index 10d458ff38..06a37d8e48 100644
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -1,55 +1,92 @@
type."'>";
- switch ($j->type) {
- case "video": {
- if (isset($j->thumbnail_url)) {
- /*$tw = (isset($j->thumbnail_width)) ? $j->thumbnail_width:200;
- $th = (isset($j->thumbnail_height)) ? $j->thumbnail_height:180;*/
- $tw=150; $th=120;
- $ret = "";
- $ret.= "";
- $ret.= "";
- } else {
- $ret=$j->html;
- }
- $ret.="
";
- }; break;
- case "photo": {
- $ret = "";
- $ret.="
";
- }; break;
- case "link": {
- //$ret = "".$j->title."";
- }; break;
- case "rich": {
- // not so safe..
- $ret = "
".$j->html.""; - }; break; - } - - $embedlink = (isset($j->title))?$j->title:$embedurl; - $ret .= "$embedlink"; - if (isset($j->author_name)) $ret.=" by ".$j->author_name; - if (isset($j->provider_name)) $ret.=" on ".$j->provider_name; - $ret.="