]> git.mxchange.org Git - friendica.git/commitdiff
Fixing tests
authorMichael <heluecht@pirati.ca>
Fri, 26 Nov 2021 11:13:12 +0000 (11:13 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 26 Nov 2021 11:13:12 +0000 (11:13 +0000)
include/api.php

index a78ed078ecec8a2ac2b1d4e2aef942f843eef74d..86792cde50b402aa381423ab28446251e6292a29 100644 (file)
@@ -1381,7 +1381,7 @@ function api_direct_messages_new($type)
        BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
        $uid = BaseApi::getCurrentUserID();
 
-       if (empty($_POST["text"]) || empty($_POST['screen_name']) && empty($_POST['user_id'])) {
+       if (empty($_POST["text"]) || empty($_REQUEST['screen_name']) && empty($_REQUEST['user_id'])) {
                return;
        }