# AdPlugin nicht kompatibel mit Änderungen am Modell?

**URL:** <https://meta.discourse.org/t/adplugin-not-compatible-with-changes-to-model/295251>\
**Category:** Bug\
**Tags:** advertising\
**Created:** [13. Februar 2024 um 20:10 UTC](https://meta.discourse.org/t/adplugin-not-compatible-with-changes-to-model/295251 "2024-02-13T20:10:16Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [14. Februar 2024 um 13:43 UTC](https://meta.discourse.org/t/adplugin-not-compatible-with-changes-to-model/295251/6 "2024-02-14T13:43:08Z")

</div>

Ok, ich sehe, was hier passiert ist – danke für den Hinweis @merefield

> <https://github.com/discourse/discourse-adplugin/pull/199>
>
> Changes in 0948d6b19e34320f95226cc43fbce976b71ceb31 caused the post-bottom-ad co…mponent to start receiving the widget-ised 'transformedPost' instead of the original \`post\` model. In most cases this difference didn't matter, but it did cause noticable issues with \`@model.category\` and \`@model.topic\`.
> 
> This commit also deletes the unused \`post-bottom/discourse-adplugin.hbs\` connector. In the past, the adplugin itself was defining the post-bottom outlet. But now, we use RenderGlimmer to load the \`post-bottom-ad\` directly.

Zwei Dinge:

1. Während einiger Refactorings vor ein paar Monaten haben wir versehentlich ‘transformedPost’ anstelle von ‘post’ an post-bottom-ad übergeben.

2. Während desselben Refactorings haben wir eine alte `post-bottom/discourse-adplugin.hbs`-Datei herumliegen lassen. Sie hat zwar nichts bewirkt, aber sie hat dieses Problem waaay schwieriger zu lösen gemacht 😅

---

_[View the full topic](https://meta.discourse.org/t/adplugin-not-compatible-with-changes-to-model/295251)._
