feat(publish): 30-min slot grid with silent slots and loud morning/evening anchors
This commit is contained in:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user