Фото: проверка статуса внутри режима тоже работает в тестовом режиме
This commit is contained in:
Binary file not shown.
@@ -230,9 +230,9 @@ async def photo_module_handler(msg: Message):
|
|||||||
await msg.answer(MENU_TEXT, parse_mode="html")
|
await msg.answer(MENU_TEXT, parse_mode="html")
|
||||||
return
|
return
|
||||||
|
|
||||||
# --- ПЕРВАЯ ПРОВЕРКА: если нет фото в pending_photos, проверяем статус модерации ---
|
# --- ПРОВЕРКА СТАТУСА: если нет фото в pending_photos, проверяем статус модерации ---
|
||||||
# (в тестовом моде API не трогаем — фото никуда не публикуется)
|
# (в тестовом режиме статусы тоже показываем — поведение как в обычном режиме)
|
||||||
if user_id not in pending_photos and not is_attachment and not config.PHOTO_TEST_MODE:
|
if user_id not in pending_photos and not is_attachment:
|
||||||
status = await check_moderation_status(user_id)
|
status = await check_moderation_status(user_id)
|
||||||
if status.get("status") == "ok" and status.get("moderation_status") == "pending":
|
if status.get("status") == "ok" and status.get("moderation_status") == "pending":
|
||||||
photo_id = status.get("photo_id", "???")
|
photo_id = status.get("photo_id", "???")
|
||||||
|
|||||||
Reference in New Issue
Block a user