Move Thread.GetPosts to PostStore.GetPostsByThread (#21633)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Shota Gvinepadze
2022-11-16 13:42:26 +04:00
коммит произвёл GitHub
родитель ab5137395c
Коммит 98e685f07c
9 изменённых файлов: 97 добавлений и 97 удалений

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

@@ -1685,7 +1685,7 @@ func (a *App) countThreadMentions(c request.CTX, user *model.User, post *model.P
true, // Assume channel mentions are always allowed for simplicity
)
posts, nErr := a.Srv().Store().Thread().GetPosts(post.Id, timestamp)
posts, nErr := a.Srv().Store().Post().GetPostsByThread(post.Id, timestamp)
if nErr != nil {
return 0, model.NewAppError("countMentionsFromPost", "app.channel.count_posts_since.app_error", nil, "", http.StatusInternalServerError).Wrap(nErr)
}