mirror of
https://github.com/friendica/friendica
synced 2025-04-27 09:10:12 +00:00
Merge pull request #8044 from annando/contact-adding
Don't add contacts when not needed
This commit is contained in:
commit
75c74e8562
6 changed files with 52 additions and 19 deletions
|
@ -1131,12 +1131,6 @@ class Diaspora
|
|||
private static function contactByHandle($uid, $handle)
|
||||
{
|
||||
$cid = Contact::getIdForURL($handle, $uid);
|
||||
if (!$cid) {
|
||||
$handle_parts = explode("@", $handle);
|
||||
$nurl_sql = "%%://" . $handle_parts[1] . "%%/profile/" . $handle_parts[0];
|
||||
$cid = Contact::getIdForURL($nurl_sql, $uid);
|
||||
}
|
||||
|
||||
if (!$cid) {
|
||||
Logger::log("Haven't found a contact for user " . $uid . " and handle " . $handle, Logger::DEBUG);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue