]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ParseUrl.php
Move jsonError out of Factory\Api\Mastodon\Error->Forbidden
[friendica.git] / src / Module / ParseUrl.php
index dfccafad42695cdeda008b9a7368aa607adc940c..7dbc2222051db2a10db0e9a9b175d62e3f7043ce 100644 (file)
@@ -100,7 +100,7 @@ class ParseUrl extends BaseModule
 
                if ($arr['text']) {
                        if ($format == 'json') {
-                               System::jsonExit($arr['text']);
+                               $this->jsonExit($arr['text']);
                        } else {
                                $this->httpExit($arr['text']);
                        }
@@ -133,7 +133,7 @@ class ParseUrl extends BaseModule
                                $ret['success'] = true;
                        }
 
-                       System::jsonExit($ret);
+                       $this->jsonExit($ret);
                } else {
                        $this->httpExit(BBCode::embedURL($url, empty($_GET['noAttachment']), $title, $description, $_GET['tags'] ?? ''));
                }