From e2b1a507193e5b2702420f8c3dd47336129bbd7c Mon Sep 17 00:00:00 2001
From: Roman Sergienko <romasergienko@outlook.com>
Date: Sat, 10 Oct 2026 14:24:05 +0000
Subject: [PATCH] fix: импорт bot в perms (права не проверялись) + аватарки инстанса и чатов

---
 web/templates/chats.html |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/web/templates/chats.html b/web/templates/chats.html
index bac08fa..a62041a 100644
--- a/web/templates/chats.html
+++ b/web/templates/chats.html
@@ -18,8 +18,13 @@
             {% set cfg = cfgs.get(c.chat_id) %}
             <tr class="hover:bg-gray-50 dark:hover:bg-gray-800/50">
                 <td class="px-5 py-3">
-                    <div class="font-medium">{{ c.title or c.chat_id }}</div>
-                    <div class="text-xs text-gray-500">id {{ c.chat_id }} · {{ c.type }}</div>
+                    <div class="flex items-center gap-3">
+                        <img src="/avatar/{{ c.chat_id }}" alt="" class="h-8 w-8 rounded-full bg-gray-200 object-cover dark:bg-gray-700" onerror="this.style.visibility='hidden'">
+                        <div>
+                            <div class="font-medium">{{ c.title or c.chat_id }}</div>
+                            <div class="text-xs text-gray-500">id {{ c.chat_id }} · {{ c.type }}</div>
+                        </div>
+                    </div>
                 </td>
                 <td class="px-5 py-3 text-gray-500">{{ cfg.btn_count }} кнопки · {{ cfg.timeout }} с · {{ cfg.max_attempts }} попытки</td>
                 <td class="px-5 py-3 text-gray-500">{{ cfg.warn_limit }} · {{ "бан" if cfg.warn_action == "ban" else "мут" }}</td>

--
Gitblit v1.9.3