REFACTOR: Remove `Discourse.SiteSettings` from reply adapter
This commit is contained in:
parent
9aab81f304
commit
f5adf6d183
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue