REFACTOR: Remove `Discourse.SiteSettings` from reply adapter

This commit is contained in:
Robin Ward 2020-07-21 12:35:16 -04:00
parent 9aab81f304
commit f5adf6d183
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import RestAdapter from "discourse/adapters/rest";
export default RestAdapter.extend({ export default RestAdapter.extend({
find(store, type, findArgs) { find(store, type, findArgs) {
const maxReplies = Discourse.SiteSettings.max_reply_history; const maxReplies = this.siteSettings.max_reply_history;
return ajax( return ajax(
`/posts/${findArgs.postId}/reply-history?max_replies=${maxReplies}` `/posts/${findArgs.postId}/reply-history?max_replies=${maxReplies}`
).then(replies => { ).then(replies => {