From 3e144f82e29e566b3cf1615c19b4ddc6dc7e4694 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 3 Oct 2017 14:16:33 -0400 Subject: Only update session activity on specific endpoints (#7549) --- api4/post.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api4/post.go') diff --git a/api4/post.go b/api4/post.go index 0cd791c6f..3a957a26f 100644 --- a/api4/post.go +++ b/api4/post.go @@ -69,6 +69,7 @@ func createPost(c *Context, w http.ResponseWriter, r *http.Request) { } c.App.SetStatusOnline(c.Session.UserId, c.Session.Id, false) + c.App.UpdateLastActivityAtIfNeeded(c.Session) w.WriteHeader(http.StatusCreated) w.Write([]byte(rp.ToJson())) -- cgit v1.2.3-1-g7c22