aboutsummaryrefslogtreecommitdiffstats
path: root/mod/oembed.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-12 04:12:03 -0800
committerFriendika <info@friendika.com>2011-11-12 04:12:03 -0800
commit58ba7c3969ce51d0f0f67d602886035230c1f3ae (patch)
treed1afcb0fda4964176743d129ace2dc9ad8bd3906 /mod/oembed.php
parentcf82174520c4cc1024f2690e51dc903d663a5661 (diff)
parentab6bf767df4a06494b314f7d0c3928a795b81bae (diff)
downloadvolse-hubzilla-58ba7c3969ce51d0f0f67d602886035230c1f3ae.tar.gz
volse-hubzilla-58ba7c3969ce51d0f0f67d602886035230c1f3ae.tar.bz2
volse-hubzilla-58ba7c3969ce51d0f0f67d602886035230c1f3ae.zip
Merge branch 'pull'
Diffstat (limited to 'mod/oembed.php')
-rw-r--r--mod/oembed.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/mod/oembed.php b/mod/oembed.php
new file mode 100644
index 000000000..25995813a
--- /dev/null
+++ b/mod/oembed.php
@@ -0,0 +1,13 @@
+<?php
+require_once("include/oembed.php");
+
+function oembed_content(&$a){
+ if ($a->argc == 2){
+ echo "<html><body>";
+ $url = base64url_decode($a->argv[1]);
+ $j = oembed_fetch_url($url);
+ echo $j->html;
+ echo "</body></html>";
+ }
+ killme();
+}