Fix missing FN from federated contact
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
4c2649c1e0
commit
060672734b
|
@ -296,7 +296,7 @@ class ShareAPIController extends OCSController {
|
|||
$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'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue