]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Oembed.php
Group selection: Respect "pubmail" and ignore atchived or blocked contacts
[friendica.git] / src / Module / Oembed.php
index 9ca4530d8b8781a2fa322f8914765f41aa656c49..f9d928428169d4def9383fb56c08272af40e2d1b 100644 (file)
@@ -17,7 +17,7 @@ use Friendica\Util\Strings;
  */
 class Oembed extends BaseModule
 {
-       public static function content()
+       public static function content(array $parameters = [])
        {
                $a = self::getApp();
 
@@ -25,16 +25,17 @@ class Oembed extends BaseModule
                if ($a->argv[1] == 'b2h') {
                        $url = ["", trim(hex2bin($_REQUEST['url']))];
                        echo Content\OEmbed::replaceCallback($url);
-                       killme();
+                       exit();
                }
 
                // Unused form: /oembed/h2b?text=...
                if ($a->argv[1] == 'h2b') {
                        $text = trim(hex2bin($_REQUEST['text']));
                        echo Content\OEmbed::HTML2BBCode($text);
-                       killme();
+                       exit();
                }
 
+               // @TODO: Replace with parameter from router
                if ($a->argc == 2) {
                        echo '<html><body>';
                        $url = Strings::base64UrlDecode($a->argv[1]);
@@ -49,6 +50,6 @@ class Oembed extends BaseModule
                        echo $j->html;
                        echo '</body></html>';
                }
-               killme();
+               exit();
        }
 }