From 62ece3131c202ee7b6331c5f73bc0ecacd70d46e Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 3 Oct 2021 15:12:50 +0000 Subject: [PATCH] Fix query --- include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index 87d619ac9e..6243b9382c 100644 --- a/include/api.php +++ b/include/api.php @@ -3630,7 +3630,7 @@ function api_direct_messages_new($type) $recipient = null; if (!empty($_POST['screen_name'])) { - $contacts = Contact::selectFirst(['id', 'nurl', 'network'], ['uid' => api_user(), 'nick' => $_POST['screen_name']]); + $contacts = Contact::selectToArray(['id', 'nurl', 'network'], ['uid' => api_user(), 'nick' => $_POST['screen_name']]); if (DBA::isResult($contacts)) { // Selecting the id by priority, friendica first api_best_nickname($contacts);