summaryrefslogtreecommitdiffstats
path: root/api4/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/context.go')
-rw-r--r--api4/context.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api4/context.go b/api4/context.go
index c526f38bb..9af15d72b 100644
--- a/api4/context.go
+++ b/api4/context.go
@@ -157,6 +157,7 @@ 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)
}
}