mirror of
https://github.com/friendica/friendica
synced 2024-11-19 02:23:41 +00:00
Fixing tests
This commit is contained in:
parent
998964c733
commit
03330ec969
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue