mirror of
https://github.com/friendica/friendica
synced 2025-04-25 11:50:11 +00:00
Merge pull request #7170 from MrPetovan/bug/6981-contact-request-blocked
Contact requests blocked
This commit is contained in:
commit
5c2cca432f
7 changed files with 80 additions and 58 deletions
|
@ -417,13 +417,6 @@ class OStatus
|
|||
$author = self::fetchAuthor($xpath, $entry, $importer, $contact, $stored);
|
||||
}
|
||||
|
||||
$value = XML::getFirstNodeValue($xpath, 'atom:author/poco:preferredUsername/text()', $entry);
|
||||
if ($value != "") {
|
||||
$nickname = $value;
|
||||
} else {
|
||||
$nickname = $author["author-name"];
|
||||
}
|
||||
|
||||
$item = array_merge($header, $author);
|
||||
|
||||
$item["uri"] = XML::getFirstNodeValue($xpath, 'atom:id/text()', $entry);
|
||||
|
@ -463,7 +456,7 @@ class OStatus
|
|||
}
|
||||
|
||||
if ($item["verb"] == ACTIVITY_FOLLOW) {
|
||||
Contact::addRelationship($importer, $contact, $item, $nickname);
|
||||
Contact::addRelationship($importer, $contact, $item);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue