mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: send notifications when users submit comments
Closes #278 Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
a2e993119e
commit
50b726d739
2 changed files with 12 additions and 0 deletions
|
@ -187,6 +187,9 @@ async def pkgbase_comments_post(
|
|||
PackageBase=pkgbase)
|
||||
update_comment_render_fastapi(comment)
|
||||
|
||||
notif = notify.CommentNotification(request.user.ID, pkgbase.ID, comment.ID)
|
||||
notif.send()
|
||||
|
||||
# Redirect to the pkgbase page.
|
||||
return RedirectResponse(f"/pkgbase/{pkgbase.Name}#comment-{comment.ID}",
|
||||
status_code=HTTPStatus.SEE_OTHER)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue