Commit 316c8433 authored by Mo Firouz's avatar Mo Firouz
Browse files

Typo fix checking for empty avatar.

parent 9c5fb952
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -451,7 +451,7 @@ func (s *ApiServer) LinkGoogle(ctx context.Context, in *api.AccountGoogle) (*emp
	}

	avatarUrl := googleProfile.Picture
	if len(avatarUrl) > 512 || avatarUrl == "" {
	if len(avatarUrl) > 512 {
		// Ignore the url in case it is longer than db can store
		s.logger.Warn("Skipping updating avatar_url: value received from Google longer than max length of 512 chars.", zap.String("avatar_url", avatarUrl))
		avatarUrl = ""