gnusocial.rocks/v3/updates-implement-storeremotemedia-for-v3-and-port-embed.md

14 lines
929 B
Markdown
Raw Normal View History

2021-08-16 19:22:59 +01:00
Updates: Implement StoreRemoteMedia for v3 and port Embed
2021-08-19 03:33:16 +01:00
GNU social comes with two plugins that add relevant media functionality.
Not talking neither about ImageEncoder nor VideoEncoder this time, but rather about StoreRemoteMedia and Embed.
2021-08-16 19:22:59 +01:00
[StoreRemoteMedia](https://code.undefinedhackers.net/GNUsocial/gnu-social/src/branch/v3/plugins/StoreRemoteMedia)
2021-08-19 03:33:16 +01:00
fetches remote files when they are `Linked` to in a note. I.e., when the major mime type isn't `text`. It triggers thumbnail generation.
2021-08-16 19:22:59 +01:00
[Embed](https://code.undefinedhackers.net/GNUsocial/gnu-social/src/branch/v3/plugins/Embed)
2021-08-19 03:33:16 +01:00
attempts to generate a page preview from open graph and oembed. I.e., acts when the major mime type is `text`.
We've changed so much with GNU social v3 that, regarding SRM there was no possible port, just a complete rewrite. Both plugins became smaller and easier to understand while promoting the same functionality with more stability.
2021-08-16 19:22:59 +01:00