mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Only update session activity on specific endpoints (#7549)
This commit is contained in:
@@ -157,7 +157,6 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
c.Err = model.NewAppError("ServeHTTP", "api.context.token_provided.app_error", nil, "token="+token, http.StatusUnauthorized)
|
||||
} else {
|
||||
c.Session = *session
|
||||
c.App.UpdateLastActivityAtIfNeeded(*session)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user