mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
API includes are now required to be included by default
This commit is contained in:
parent
420088acc9
commit
d7ac8aac2e
|
@ -1,6 +1,5 @@
|
||||||
import { extend } from 'flarum/extend';
|
import { extend } from 'flarum/extend';
|
||||||
import app from 'flarum/app';
|
import app from 'flarum/app';
|
||||||
import DiscussionPage from 'flarum/components/DiscussionPage';
|
|
||||||
import CommentPost from 'flarum/components/CommentPost';
|
import CommentPost from 'flarum/components/CommentPost';
|
||||||
import punctuate from 'flarum/helpers/punctuate';
|
import punctuate from 'flarum/helpers/punctuate';
|
||||||
import username from 'flarum/helpers/username';
|
import username from 'flarum/helpers/username';
|
||||||
|
@ -9,10 +8,6 @@ import icon from 'flarum/helpers/icon';
|
||||||
import PostLikesModal from 'likes/components/PostLikesModal';
|
import PostLikesModal from 'likes/components/PostLikesModal';
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
extend(DiscussionPage.prototype, 'params', function(params) {
|
|
||||||
params.include.push('posts.likes');
|
|
||||||
});
|
|
||||||
|
|
||||||
extend(CommentPost.prototype, 'footerItems', function(items) {
|
extend(CommentPost.prototype, 'footerItems', function(items) {
|
||||||
const post = this.props.post;
|
const post = this.props.post;
|
||||||
const likes = post.likes();
|
const likes = post.likes();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user