mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-16 07:29:20 +00:00
core: improve notification callback system
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
1 parent
9b0b381fa3
commit
d5c6695f80
2 files changed
+11
-4
No files matched your search
+3
-1
@@ -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