Skip to content

[stable8.3] fix(settings): read social sync initial state as boolean - #5621

Draft
backportbot[bot] wants to merge 2 commits into
stable8.3from
backport/5566/stable8.3
Draft

[stable8.3] fix(settings): read social sync initial state as boolean#5621
backportbot[bot] wants to merge 2 commits into
stable8.3from
backport/5566/stable8.3

Conversation

@backportbot

@backportbot backportbot Bot commented Aug 6, 2026

Copy link
Copy Markdown

Backport of #5566

Warning, This backport's changes differ from the original and might be incomplete 鈿狅笍

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

MiMoHo and others added 2 commits August 6, 2026 11:04
Since babe45a the PageController provides allowSocialSync and
enableSocialSync as booleans, but ContactsSettings.vue still compared
them with the strings 'yes'/'no'. Both comparisons therefore always
evaluated to true: the 'Update avatars from social media' switch
always appeared enabled regardless of the stored setting.

Also put the unused allowSocialSync state back to work by hiding the
switch when the administrator has disabled social sync, matching the
behaviour before the settings dialog refactorings.

AdminSettings.vue is intentionally left unchanged: its initial state
comes from lib/Settings/AdminSettings.php, which still provides the
raw string app values, so the string comparison is correct there.

Resolves #5561

Assisted-by: Claude:claude-fable-5
Signed-off-by: MiMoHo <37556964+MiMoHo@users.noreply.github.com>
Signed-off-by: Hamza <hamzamahjoubi221@gmail.com>
fix: unify `allowSocialSync` frontend type

Signed-off-by: Hamza <hamzamahjoubi221@gmail.com>

[skip ci]
@backportbot
backportbot Bot requested review from DerDreschner and hamza221 August 6, 2026 11:04
@backportbot backportbot Bot added bug Something isn't working 3. to review Waiting for reviews feedback-requested labels Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working feedback-requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants