mirror of
https://github.com/flarum/core.git
synced 2025-08-14 04:14:06 +02:00
Remove an obsolete method extension
This method hasn't existed in a while, and its purpose (including the related tags when loading a discussion via API) has already been achieved by extending the backend.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { extend } from 'flarum/extend';
|
||||
import DiscussionListItem from 'flarum/components/DiscussionListItem';
|
||||
import DiscussionPage from 'flarum/components/DiscussionPage';
|
||||
import DiscussionHero from 'flarum/components/DiscussionHero';
|
||||
|
||||
import tagsLabel from '../common/helpers/tagsLabel';
|
||||
@@ -16,11 +15,6 @@ export default function() {
|
||||
}
|
||||
});
|
||||
|
||||
// Include a discussion's tags when fetching it.
|
||||
extend(DiscussionPage.prototype, 'params', function(params) {
|
||||
params.include.push('tags');
|
||||
});
|
||||
|
||||
// Restyle a discussion's hero to use its first tag's color.
|
||||
extend(DiscussionHero.prototype, 'view', function(view) {
|
||||
const tags = sortTags(this.props.discussion.tags());
|
||||
|
Reference in New Issue
Block a user