mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
10 lines
363 B
JavaScript
10 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 };
|
|
});
|
|
},
|
|
});
|