From 237e4fd531668c1619be030adc6651b405ada331 Mon Sep 17 00:00:00 2001 From: Kyriakos Z <3829551+koox00@users.noreply.github.com> Date: Fri, 17 Sep 2021 16:01:41 +0300 Subject: [PATCH] MM-37896: thread recency when updating a post (#18363) When a post is edited we should not update the thread recency (LastReplyAt). --- store/sqlstore/post_store.go | 1 - 1 file changed, 1 deletion(-) diff --git a/store/sqlstore/post_store.go b/store/sqlstore/post_store.go index f2fb29056d..7455ab225d 100644 --- a/store/sqlstore/post_store.go +++ b/store/sqlstore/post_store.go @@ -357,7 +357,6 @@ func (s *SqlPostStore) Update(newPost *model.Post, oldPost *model.Post) (*model. if newPost.RootId != "" { s.GetMaster().Exec("UPDATE Posts SET UpdateAt = :UpdateAt WHERE Id = :RootId AND UpdateAt < :UpdateAt", map[string]interface{}{"UpdateAt": time, "RootId": newPost.RootId}) - s.GetMaster().Exec("UPDATE Threads SET LastReplyAt = :UpdateAt WHERE PostId = :RootId", map[string]interface{}{"UpdateAt": time, "RootId": newPost.RootId}) } // mark the old post as deleted