Skip to content

Commit

Permalink
Merge pull request #22394 from nextcloud/fix/share-federation-missing-fn
Browse files Browse the repository at this point in the history
Fix missing FN from federated contact
  • Loading branch information
skjnldsv authored Aug 24, 2020
2 parents df85760 + 6d576a9 commit 111496c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/Controller/ShareAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ private function getDisplayNameFromAddressBook(string $query, string $property):
$result = \OC::$server->getContactsManager()->search($query, [$property]);
foreach ($result as $r) {
foreach ($r[$property] as $value) {
if ($value === $query) {
if ($value === $query && $r['FN']) {
return $r['FN'];
}
}
Expand Down

0 comments on commit 111496c

Please sign in to comment.