Repository navigation
Conversation
…and profile link - Location line from the LHC MaxMind City database, names in the language of the default site access (country via intl, city only when accuracy radius < 200 km, then region); falls back to the stored country. - Telegram/Max visitors: language (when different from the site language), username and Telegram profile link (tg://user?id) read from the stored incoming webhook payload. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the first message of a new chat topic (
buildChatCard()) more informative, without extra messages or API calls.Location (web chats)
geo_data.max_mind_city_location), one local lookup per new chat (a few ms).ru_RU→ Russian,en_EN→ English…); country name viaintl(Locale::getDisplayRegion), MaxMind names as a fallback.accuracy_radius< 200 km), otherwise country + region; a region that only repeats the city is skipped.Example:
🇷🇺 Россия, Чита · Забайкальский край · 176.x.x.xMessenger visitors (incoming webhooks: Telegram, Max)
message.from.language_code/ Maxuser_locale), shown only when it differs from the site language:🗣 English.iwh_field(Max).tg://user?id=….No settings, DB changes or core changes.
🤖 Generated with Claude Code