mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
core: improve notification callback system
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
@ -62,7 +62,9 @@ def notification(request, notif_id):
|
||||
if notif:
|
||||
if notif.type not in settings.SITH_PERMANENT_NOTIFICATIONS:
|
||||
notif.viewed = True
|
||||
notif.save()
|
||||
else:
|
||||
notif.callback()
|
||||
notif.save()
|
||||
return redirect(notif.url)
|
||||
return redirect("/")
|
||||
|
||||
|
Reference in New Issue
Block a user