From dcf814fb128011872c3d813bd29e64e056bc34cd Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 26 Jun 2020 14:43:11 +0200 Subject: [PATCH] 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. --- extensions/tags/js/src/forum/addTagLabels.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/extensions/tags/js/src/forum/addTagLabels.js b/extensions/tags/js/src/forum/addTagLabels.js index 00523605f..5f6f23699 100644 --- a/extensions/tags/js/src/forum/addTagLabels.js +++ b/extensions/tags/js/src/forum/addTagLabels.js @@ -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());