Fix query
This commit is contained in:
parent
6668591afe
commit
62ece3131c
1 changed files with 1 additions and 1 deletions
|
@ -3630,7 +3630,7 @@ function api_direct_messages_new($type)
|
||||||
|
|
||||||
$recipient = null;
|
$recipient = null;
|
||||||
if (!empty($_POST['screen_name'])) {
|
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)) {
|
if (DBA::isResult($contacts)) {
|
||||||
// Selecting the id by priority, friendica first
|
// Selecting the id by priority, friendica first
|
||||||
api_best_nickname($contacts);
|
api_best_nickname($contacts);
|
||||||
|
|
Loading…
Reference in a new issue