feat(publish): 30-min slot grid with silent slots and loud morning/evening anchors

This commit is contained in:
kpa39l
2026-11-05 11:49:41 +00:00
parent 2973e96086
commit baaf9f54b6
16 changed files with 281 additions and 21 deletions
+2 -1
View File
@@ -1015,7 +1015,8 @@ def plan_dequeue(post_id: int, request: Request):
def plan_publish_now(post_id: int, request: Request):
"""Опубликовать мимо расписания (кнопка 🚀 на /plan, подтверждение в форме)."""
_require_auth(request)
err = impl_approve(post_id)
# «🚀 Опубликовать сейчас» — человек нажал сам, значит со звуком, мимо расписания
err = impl_approve(post_id, silent=False)
if err:
return RedirectResponse(url=f"/plan?error=publish:{quote(err)}", status_code=302)
return RedirectResponse(url="/published", status_code=302)