Фото: проверка статуса внутри режима тоже работает в тестовом режиме

This commit is contained in:
dddennnisss
2026-08-21 22:25:19 +07:00
parent 0b9a697099
commit 1bdfd163fe
2 changed files with 3 additions and 3 deletions
Binary file not shown.
+3 -3
View File
@@ -230,9 +230,9 @@ async def photo_module_handler(msg: Message):
await msg.answer(MENU_TEXT, parse_mode="html")
return
# --- ПЕРВАЯ ПРОВЕРКА: если нет фото в pending_photos, проверяем статус модерации ---
# (в тестовом моде API не трогаем — фото никуда не публикуется)
if user_id not in pending_photos and not is_attachment and not config.PHOTO_TEST_MODE:
# --- ПРОВЕРКА СТАТУСА: если нет фото в pending_photos, проверяем статус модерации ---
# (в тестовом режиме статусы тоже показываем — поведение как в обычном режиме)
if user_id not in pending_photos and not is_attachment:
status = await check_moderation_status(user_id)
if status.get("status") == "ok" and status.get("moderation_status") == "pending":
photo_id = status.get("photo_id", "???")