DEV: Fix compatibility with the Glimmer Post Stream (#57)

This commit is contained in:
Sérgio Saquetim 2025-05-06 15:08:09 -03:00 committed by GitHub
parent 3e4d2020a1
commit 279871bdfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) => {