1
1
Fork 0

Fixing tests

This commit is contained in:
Michael 2021-11-26 11:13:12 +00:00
parent 998964c733
commit 03330ec969

View file

@ -1381,7 +1381,7 @@ function api_direct_messages_new($type)
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE); BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
$uid = BaseApi::getCurrentUserID(); $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; return;
} }