Skip to content

Commit

Permalink
Merge pull request #125 from AndrewPrigorshnev/dev/stop-using-depreca…
Browse files Browse the repository at this point in the history
…ted-cookAsync-function

DEV: Stop using the deprecated text.cookAsync function
  • Loading branch information
angusmcleod authored Oct 11, 2023
2 parents c18cbee + 2575d7e commit 41eca0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .discourse-compatibility
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.0.beta2: c18cbeeac5a3f7ebf540cd6fc7edef48db889edd
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
@@ -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: [email protected]
# url: https://github.com/paviliondev/discourse-events
Expand Down

0 comments on commit 41eca0f

Please sign in to comment.