]> git.mxchange.org Git - friendica.git/commitdiff
Fix query
authorMichael <heluecht@pirati.ca>
Sun, 3 Oct 2021 15:12:50 +0000 (15:12 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 3 Oct 2021 15:12:50 +0000 (15:12 +0000)
include/api.php

index 87d619ac9e12040ba31d71e1e71657616906d93f..6243b9382c06617bd1d71d8037a59e30873a18f0 100644 (file)
@@ -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);