X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpost.php;h=8e279644bd2a7e70298a7220d73de0929e8c1ab9;hb=f22fe7118d52251dbd0898279ef078b797885ec4;hp=076587839d96765577d270403dbfb9e4c7ae96ae;hpb=2178feab30c6bedbf1206b3e1f141a76301ab5fc;p=friendica.git diff --git a/mod/post.php b/mod/post.php index 076587839d..8e279644bd 100644 --- a/mod/post.php +++ b/mod/post.php @@ -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); }