mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 14:02:01 +08:00
11 lines
363 B
JavaScript
11 lines
363 B
JavaScript
import RestAdapter from 'discourse/adapters/rest';
|
|
|
|
export default RestAdapter.extend({
|
|
find(store, type, findArgs) {
|
|
const maxReplies = Discourse.SiteSettings.max_reply_history;
|
|
return Discourse.ajax(`/posts/${findArgs.postId}/reply-history?max_replies=${maxReplies}`).then(replies => {
|
|
return { post_reply_histories: replies };
|
|
});
|
|
},
|
|
});
|