tmp: debug-log telegram language_code on contour (REVERT before merge)
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Successful in 10s
CI / integration (pull_request) Successful in 15s
CI / ui (pull_request) Successful in 55s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m14s
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Successful in 10s
CI / integration (pull_request) Successful in 15s
CI / ui (pull_request) Successful in 55s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m14s
Temporary: traces the language_code Telegram sends + the seeded variant_preferences, to settle why a new account lands in Russian despite an English interface. Test contour only; force-pushed away before merge so it never reaches master.
This commit is contained in:
@@ -46,6 +46,15 @@ func (s *Server) handleTelegramAuth(c *gin.Context) {
|
||||
s.abortErr(c, err)
|
||||
return
|
||||
}
|
||||
// TEMP DEBUG (revert before merge): trace the language_code Telegram actually sent and
|
||||
// what we seeded, to settle the "ru interface" question on the test contour.
|
||||
s.log.Info("telegram auth debug",
|
||||
zap.String("external_id", req.ExternalID),
|
||||
zap.String("language_code", req.LanguageCode),
|
||||
zap.String("username", req.Username),
|
||||
zap.String("start_param", req.StartParam),
|
||||
zap.Bool("created", created),
|
||||
zap.Strings("variant_preferences", acc.VariantPreferences))
|
||||
if created {
|
||||
// First registration: re-evaluate moderated-chat write access, so a user who
|
||||
// joined the chat before registering is granted on the spot (no chat_member
|
||||
|
||||
Reference in New Issue
Block a user