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

added ‘addFeaturedLinkMetaDecorator’ method to the plugin api (#10232)

  • added ‘addFeaturedLinkMetaDecorator’ method to the plugin api

  • fixed formatting

  • Fixed quotes around import

diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.js b/app/assets/javascripts/discourse/app/lib/plugin-api.js
index a157f01..fd5a0e4 100644
--- a/app/assets/javascripts/discourse/app/lib/plugin-api.js
+++ b/app/assets/javascripts/discourse/app/lib/plugin-api.js
@@ -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;

GitHub sha: 9917b9cb

This commit appears in #10232 which was merged by eviltrout.