mirror of
https://github.com/koel/koel.git
synced 2026-04-25 00:36:03 +03:00
[PR #2199] fix: update Google SSO user avatars on login #2138
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#2138
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/koel/koel/pull/2199
Author: @pwqw
Created: 1/19/2026
Status: 🔄 Open
Base:
master← Head:fix/google-sso-avatar📝 Commits (2)
fd9f9d5fix: update Google SSO user avatars on login0a4640afix(sso): improve Google avatar detection to support all CDN subdomains📊 Changes
2 files changed (+14 additions, -3 deletions)
View changed files
📝
app/Observers/UserObserver.php(+5 -2)📝
app/Services/UserService.php(+9 -1)📄 Description
Previously, when a user logged in with Google SSO, their avatar from Google was not being updated if they already had an avatar stored in the database (even if it was a Google URL). This happened because has_custom_avatar was true for any stored avatar, including Google URLs.
Changes:
This ensures Google SSO users always have their latest profile picture from Google, while preserving user-uploaded custom avatars.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.