From d7ac8aac2e2004104fc3bb0900155a5fecf00672 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 23 Jul 2015 14:27:54 +0930 Subject: [PATCH] API includes are now required to be included by default --- extensions/likes/js/forum/src/addLikesList.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/extensions/likes/js/forum/src/addLikesList.js b/extensions/likes/js/forum/src/addLikesList.js index d7536e214..824be428d 100644 --- a/extensions/likes/js/forum/src/addLikesList.js +++ b/extensions/likes/js/forum/src/addLikesList.js @@ -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();