Skip to content
Snippets Groups Projects
Unverified Commit 111496c7 authored by John Molakvoæ's avatar John Molakvoæ Committed by GitHub
Browse files

Merge pull request #22394 from nextcloud/fix/share-federation-missing-fn

Fix missing FN from federated contact
parents df857604 6d576a91
No related branches found
No related tags found
No related merge requests found
...@@ -316,7 +316,7 @@ class ShareAPIController extends OCSController { ...@@ -316,7 +316,7 @@ class ShareAPIController extends OCSController {
$result = \OC::$server->getContactsManager()->search($query, [$property]); $result = \OC::$server->getContactsManager()->search($query, [$property]);
foreach ($result as $r) { foreach ($result as $r) {
foreach ($r[$property] as $value) { foreach ($r[$property] as $value) {
if ($value === $query) { if ($value === $query && $r['FN']) {
return $r['FN']; return $r['FN'];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment