diff --git a/.discourse-compatibility b/.discourse-compatibility new file mode 100644 index 00000000..7f371dad --- /dev/null +++ b/.discourse-compatibility @@ -0,0 +1 @@ +3.2.0.beta2: c18cbeeac5a3f7ebf540cd6fc7edef48db889edd diff --git a/assets/javascripts/discourse/components/events-calendar-card.js b/assets/javascripts/discourse/components/events-calendar-card.js index 5d06f1a2..16cbd665 100644 --- a/assets/javascripts/discourse/components/events-calendar-card.js +++ b/assets/javascripts/discourse/components/events-calendar-card.js @@ -1,5 +1,5 @@ import DiscourseURL from "discourse/lib/url"; -import { cookAsync } from "discourse/lib/text"; +import { cook } from "discourse/lib/text"; import { on } from "discourse-common/utils/decorators"; import { bind, next, scheduleOnce } from "@ember/runloop"; import Component from "@ember/component"; @@ -13,8 +13,8 @@ export default Component.extend({ setup() { const excerpt = this.get("topic.excerpt"); const title = this.get("topic.title"); - cookAsync(excerpt).then((cooked) => this.set("cookedExcerpt", cooked)); - cookAsync(title).then((cooked) => this.set("cookedTitle", cooked)); + cook(excerpt).then((cooked) => this.set("cookedExcerpt", cooked)); + cook(title).then((cooked) => this.set("cookedTitle", cooked)); }, didInsertElement() { diff --git a/plugin.rb b/plugin.rb index 70fb7f7c..7a303bf5 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-events # about: Allows you to manage events in Discourse -# version: 0.2.6 +# version: 0.2.7 # authors: Angus McLeod # contact_emails: development@pavilion.tech # url: https://github.com/paviliondev/discourse-events