mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: allow users to hide deleted comments
Closes: #435 Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
parent
174af5f025
commit
6ede837b4f
9 changed files with 132 additions and 5 deletions
|
@ -22,6 +22,7 @@ def simple(
|
|||
CN: bool = False,
|
||||
UN: bool = False,
|
||||
ON: bool = False,
|
||||
HDC: bool = False,
|
||||
S: bool = False,
|
||||
user: models.User = None,
|
||||
**kwargs,
|
||||
|
@ -41,6 +42,7 @@ def simple(
|
|||
user.CommentNotify = strtobool(CN)
|
||||
user.UpdateNotify = strtobool(UN)
|
||||
user.OwnershipNotify = strtobool(ON)
|
||||
user.HideDeletedComments = strtobool(HDC)
|
||||
|
||||
|
||||
@db.retry_deadlock
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue