fix: Peer country flag not shown in peers list (#1894)

* fix: Peer country flag not shown in peers list

* Update functions.php
This commit is contained in:
Roman Kelesidis 2025-05-04 16:20:02 +03:00 committed by GitHub
commit 8edba72f09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -466,7 +466,7 @@ if ($tor_reged && $tor_info) {
if (IS_AM || $peer['user_id'] == $userdata['user_id'] || !bf($peer['user_opt'], 'user_opt', 'user_hide_peer_country')) {
if ($infoByIP = infoByIP((!empty($peer['ipv6']) ? $peer['ipv6'] : $peer['ip']), $peer['port'])) {
if (!empty($infoByIP['countryCode'])) {
$peerCountry = render_flag($infoByIP['countryCode']);
$peerCountry = render_flag($infoByIP['countryCode'], false);
}
}
}