Remove the notifications once they are shown
This commit is contained in:
parent
c6117f1c2f
commit
5fe81dfd1d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue