]> git.mxchange.org Git - friendica.git/blobdiff - mod/post.php
Class file relocations
[friendica.git] / mod / post.php
index 076587839d96765577d270403dbfb9e4c7ae96ae..8e279644bd2a7e70298a7220d73de0929e8c1ab9 100644 (file)
@@ -4,13 +4,15 @@
  * Zot endpoint
  */
 
+use Friendica\App;
+use Friendica\Database\DBM;
 
 require_once('include/salmon.php');
 require_once('include/crypto.php');
 // not yet ready for prime time
 //require_once('include/zot.php');
-       
-function post_post(App &$a) {
+
+function post_post(App $a) {
 
        $bulk_delivery = false;
 
@@ -19,11 +21,11 @@ function post_post(App &$a) {
        }
        else {
                $nickname = $a->argv[2];
-               $r = q("SELECT * FROM `user` WHERE `nickname` = '%s' 
+               $r = q("SELECT * FROM `user` WHERE `nickname` = '%s'
                                AND `account_expired` = 0 AND `account_removed` = 0 LIMIT 1",
                        dbesc($nickname)
                );
-               if (! dbm::is_result($r)) {
+               if (! DBM::is_result($r)) {
                        http_status_exit(500);
                }