mirror of
https://github.com/discourse/discourse-placeholder-theme-component.git
synced 2025-06-25 16:32:11 +00:00
DEV: Fix compatibility with the Glimmer Post Stream (#57)
This commit is contained in:
parent
3e4d2020a1
commit
279871bdfd
@ -161,14 +161,14 @@ export default {
|
||||
this.keyValueStore = container.lookup("service:key-value-store");
|
||||
this.expireOldValues();
|
||||
|
||||
withPluginApi("0.8.7", (api) => {
|
||||
withPluginApi((api) => {
|
||||
api.decorateCookedElement(
|
||||
(cooked, postWidget) => {
|
||||
if (!postWidget) {
|
||||
(cooked, helper) => {
|
||||
if (!helper) {
|
||||
return;
|
||||
}
|
||||
|
||||
const postIdentifier = `${postWidget.widget.attrs.topicId}-${postWidget.widget.attrs.id}-`;
|
||||
const postIdentifier = `${helper.model.topic?.id}-${helper.model.id}-`;
|
||||
const placeholders = {};
|
||||
|
||||
const processChange = (inputEvent) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user