added 'addFeaturedLinkMetaDecorator' method to the plugin api (#10232)

* added 'addFeaturedLinkMetaDecorator' method to the plugin api

* fixed formatting

* Fixed quotes around import
This commit is contained in:
Faizaan Gagan 2020-07-14 20:10:40 +05:30 committed by GitHub
parent 3d65678a13
commit 9917b9cb21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -58,9 +58,10 @@ import Composer from "discourse/models/composer";
import { on } from "@ember/object/evented";
import { addQuickAccessProfileItem } from "discourse/widgets/quick-access-profile";
import KeyboardShortcuts from "discourse/lib/keyboard-shortcuts";
import { addFeaturedLinkMetaDecorator } from "discourse/lib/render-topic-featured-link";
// If you add any methods to the API ensure you bump up this number
const PLUGIN_API_VERSION = "0.10.1";
const PLUGIN_API_VERSION = "0.10.2";
class PluginApi {
constructor(version, container) {
@ -1174,6 +1175,10 @@ class PluginApi {
addQuickAccessProfileItem(item) {
addQuickAccessProfileItem(item);
}
addFeaturedLinkMetaDecorator(decorator) {
addFeaturedLinkMetaDecorator(decorator);
}
}
let _pluginv01;