mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-30 17:06:32 +00:00
feat(user): add avatar cache flushing (#1041)
This commit is contained in:
@@ -30,6 +30,7 @@ import (
|
||||
"code.vikunja.io/api/pkg/log"
|
||||
"code.vikunja.io/api/pkg/models"
|
||||
"code.vikunja.io/api/pkg/modules/auth"
|
||||
"code.vikunja.io/api/pkg/modules/avatar"
|
||||
"code.vikunja.io/api/pkg/modules/avatar/upload"
|
||||
"code.vikunja.io/api/pkg/user"
|
||||
"code.vikunja.io/api/pkg/utils"
|
||||
@@ -250,6 +251,8 @@ func syncUserAvatarFromOpenID(s *xorm.Session, u *user.User, pictureURL string)
|
||||
return fmt.Errorf("error storing avatar: %w", err)
|
||||
}
|
||||
|
||||
avatar.FlushAllCaches(u)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user