Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed it so that when performing the search, it correctly fills the u… #32308

Conversation

mstolf
Copy link
Member

@mstolf mstolf commented May 9, 2022

Debugging the code, it was possible to identify that the $contacts array did not have the value 'PHOTO' in this way, not setting the avatar and not loading in the contacts search

I'm not sure if the way I made the correction is the best possible, so if it's incorrect this way you can let me know and direct me what would be the best way to make the correction

Fix #32271

@mstolf mstolf self-assigned this May 9, 2022
@mstolf mstolf added bug 3. to review Waiting for reviews labels May 9, 2022
}

if (isset($contact['FN'])) {
$entry->setFullName($contact['FN']);
}

$avatarPrefix = "VALUE=uri:";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if the two way should be keep. e.g. first try looking if the PHOTO property exists and if not fallback to the UID?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mstolf I left line 323 throw 327 in place and only added 314 throw 318 and its working for me

@szaimen szaimen added this to the Nextcloud 26 milestone Jan 23, 2023
@blizzz blizzz mentioned this pull request Mar 7, 2023
@blizzz blizzz modified the milestones: Nextcloud 26, Nextcloud 27 Mar 9, 2023
This was referenced May 3, 2023
@blizzz blizzz mentioned this pull request May 17, 2023
@blizzz blizzz modified the milestones: Nextcloud 27, Nextcloud 28 May 23, 2023
@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
This was referenced Nov 6, 2023
This was referenced Nov 14, 2023
@blizzz blizzz modified the milestones: Nextcloud 28, Nextcloud 29 Nov 23, 2023
@skjnldsv skjnldsv removed the 3. to review Waiting for reviews label Feb 24, 2024
@skjnldsv
Copy link
Member

Fixed already

@skjnldsv skjnldsv closed this Feb 24, 2024
@skjnldsv skjnldsv removed this from the Nextcloud 29 milestone Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: User profile picture not showing in Nextcloud contacts avatar
6 participants