akirk / enable-mastodon-apps

Allow accessing your WordPress blog with Mastodon clients
https://wordpress.org/plugins/enable-mastodon-apps
GNU General Public License v2.0
36 stars 6 forks source link

Images and Videos missing #71

Closed thatguygriff closed 8 months ago

thatguygriff commented 8 months ago

Starting with 0.6.3 I noticed that images and videos on posts that were visible on the web were missing in Ivory and the default Mastodon app.

After some digging I traced it to this change and its removal of all Gutenberg tags also removing things like wp:image.

akirk commented 8 months ago

Sorry and thanks for tracing back the root cause! I'll release a fixed version.

thatguygriff commented 8 months ago

0.6.5 has restored images but any post with a <!-- wp:video --> tag is still removed, preventing mastodon apps from seeing the contained <video> tag

edit: After looking a bit further it appears this is actually a feature request as opposed to a regression as the media_attachments logic only looks for wp:image and not wp:video