From: Michael <heluecht@pirati.ca> Date: Fri, 2 Mar 2018 03:55:24 +0000 (+0000) Subject: Bugfix: No constant update in "getIdForUrl" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=361af7bc78068ec18119ce18a0fc0506f6b750ce;p=friendica.git Bugfix: No constant update in "getIdForUrl" --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 8a2be5e9ad..fc27b0c410 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -669,11 +669,11 @@ class Contact extends BaseObject /// @todo Verify if we can't use Contact::getDetailsByUrl instead of the following // We first try the nurl (http://server.tld/nick), most common case - $contact = dba::selectFirst('contact', ['id', 'avatar-date'], ['nurl' => normalise_link($url), 'uid' => $uid]); + $contact = dba::selectFirst('contact', ['id', 'avatar', 'avatar-date'], ['nurl' => normalise_link($url), 'uid' => $uid]); // Then the addr (nick@server.tld) if (!DBM::is_result($contact)) { - $contact = dba::selectFirst('contact', ['id', 'avatar-date'], ['addr' => $url, 'uid' => $uid]); + $contact = dba::selectFirst('contact', ['id', 'avatar', 'avatar-date'], ['addr' => $url, 'uid' => $uid]); } // Then the alias (which could be anything)