mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 08:14:01 +08:00
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({
|
||||
find(store, type, findArgs) {
|
||||
const maxReplies = Discourse.SiteSettings.max_reply_history;
|
||||
const maxReplies = this.siteSettings.max_reply_history;
|
||||
return ajax(
|
||||
`/posts/${findArgs.postId}/reply-history?max_replies=${maxReplies}`
|
||||
).then(replies => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user