From 147ed57fc87465a9beb07f4afdb2ed7ef7932558 Mon Sep 17 00:00:00 2001 From: Las Zenow Date: Tue, 3 Sep 2013 14:16:19 +0200 Subject: [PATCH] Remove the notifications once they are shown --- template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.go b/template.go index 30a820b..eb40b9b 100644 --- a/template.go +++ b/template.go @@ -25,12 +25,12 @@ type Status struct { func GetStatus(w http.ResponseWriter, r *http.Request) Status { var s Status sess := GetSession(r) - sess.Save(w, r) s.BaseURL = "http://" + r.Host s.FullURL = s.BaseURL + r.RequestURI s.User = sess.User s.IsAdmin = sess.IsAdmin() s.Notif = sess.GetNotif() + sess.Save(w, r) return s }