Why does my code interfere with other extensions when accessing the page content data? #944
-
I'm currently developing a Mastodonbot extension to automatically post new pages to a Mastodon instance. In my extension settings I would like to have the possibility to customize the post template with placeholders such as in the blog or edit extension.
Being mainly a evil copy/paste developer, I used the edit extension as an example to appropriately convert the placeholders into actual content.
Full code can be found in this testing branch. The code partly works, but it somehow breaks the creation of new pages. Blog pages are created, but they are missing the appropriate date filename prefix and include wrong page settings, thus not appearing in my blogpages layout. Apparently my placeholders are interfering with another extension, and I'm a little lost in finding the right debug method as there are no errors that can be tracked down. Can someone help me? The log file contains old install information, but here it is anyway.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Seems I found the problem and updated the topic accordingly.
If I comment out this line, the extension no longer interferes when creating blog pages. But... why? As far as I understand the API, this line should create a text description from the newly created page and optionally send it to Mastodon if configured. |
Beta Was this translation helpful? Give feedback.
-
The edit extension has been updated, I think we found a timing problem and moved the edit events to a later time. |
Beta Was this translation helpful? Give feedback.
-
Thank you, works as expected now. 👍 |
Beta Was this translation helpful? Give feedback.
The edit extension has been updated, I think we found a timing problem and moved the edit events to a later time.