API includes are now required to be included by default

This commit is contained in:
Toby Zerner 2015-07-23 14:27:54 +09:30
parent 420088acc9
commit d7ac8aac2e

View File

@ -1,6 +1,5 @@
import { extend } from 'flarum/extend';
import app from 'flarum/app';
import DiscussionPage from 'flarum/components/DiscussionPage';
import CommentPost from 'flarum/components/CommentPost';
import punctuate from 'flarum/helpers/punctuate';
import username from 'flarum/helpers/username';
@ -9,10 +8,6 @@ import icon from 'flarum/helpers/icon';
import PostLikesModal from 'likes/components/PostLikesModal';
export default function() {
extend(DiscussionPage.prototype, 'params', function(params) {
params.include.push('posts.likes');
});
extend(CommentPost.prototype, 'footerItems', function(items) {
const post = this.props.post;
const likes = post.likes();