Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

remove annoying messages

Cette révision appartient à :
kilo 2017-10-31 02:25:09 +01:00 révisé par GitHub
Parent 3959a86ec0
révision 90320dfa2b
Aucune clé n'a été trouvée pour cette signature dans la base de données
ID de la clé GPG: 4AEE18F83AFDEB23

Voir le fichier

@ -218,14 +218,11 @@ func UserNotificationsHandler(c *gin.Context) {
messages := msg.GetMessages(c)
if c.Request.URL.Query()["clear"] != nil {
notifications.DeleteNotifications(currentUser, false)
messages.AddInfoT("infos", "read_notifications_cleared")
} else if c.Request.URL.Query()["clear_all"] != nil {
notifications.DeleteNotifications(currentUser, true)
messages.AddInfoT("infos", "notifications_cleared")
} else if c.Request.URL.Query()["read_all"] != nil {
notifications.MarkAllNotificationsAsRead(currentUser)
messages.AddInfoT("infos", "notifications_read")
}
templates.UserProfileNotifications(c, currentUser)
} else {