mirror of
https://github.com/friendica/friendica
synced 2025-05-09 20:24:10 +02:00
Don't add contacts when not needed
This commit is contained in:
parent
6c2d13403e
commit
73b82d1455
6 changed files with 51 additions and 18 deletions
|
@ -1132,12 +1132,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