From 03330ec969ebf0d4a450e04fae7a8799a97dc77b Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 26 Nov 2021 11:13:12 +0000 Subject: [PATCH] Fixing tests --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index a78ed078ec..86792cde50 100644 --- a/include/api.php +++ b/include/api.php @@ -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; }