Only update session activity on specific endpoints (#7549)

Этот коммит содержится в:
Joram Wilander
2017-10-03 14:16:33 -04:00
коммит произвёл Chris
родитель 5e69ce099f
Коммит 3e144f82e2
4 изменённых файлов: 5 добавлений и 1 удалений

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

@@ -716,6 +716,8 @@ func viewChannel(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
c.App.UpdateLastActivityAtIfNeeded(c.Session)
// Returning {"status": "OK", ...} for backwards compatability
resp := &model.ChannelViewResponse{
Status: "OK",