Detach session activity update from statuses (#6379)

Этот коммит содержится в:
Joram Wilander
2017-05-10 09:48:50 -04:00
коммит произвёл GitHub
родитель b868aa1dc7
Коммит 0ae6886513
6 изменённых файлов: 30 добавлений и 13 удалений

Просмотреть файл

@@ -222,6 +222,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if c.Err == nil && h.isUserActivity && token != "" && len(c.Session.UserId) > 0 {
app.SetStatusOnline(c.Session.UserId, c.Session.Id, false)
app.UpdateLastActivityAtIfNeeded(c.Session)
}
if c.Err == nil && (h.requireUser || h.requireSystemAdmin) {