MM-35297 Add the ability to control if thread is followed when marking post as unread and don't autofollow from API (#17799)

* Add the ability to control if thread is followed when marking post as unread and don't autofollow from API

* Fix style
Этот коммит содержится в:
Joram Wilander
2021-06-18 15:54:17 -04:00
коммит произвёл GitHub
родитель f69b28610a
Коммит faf9e8725b
7 изменённых файлов: 73 добавлений и 46 удалений

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

@@ -657,7 +657,7 @@ func setPostUnread(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
state, err := c.App.MarkChannelAsUnreadFromPost(c.Params.PostId, c.Params.UserId, collapsedThreadsSupported)
state, err := c.App.MarkChannelAsUnreadFromPost(c.Params.PostId, c.Params.UserId, collapsedThreadsSupported, false)
if err != nil {
c.Err = err
return