Images not federating?
-
@support@community.nodebb.org Is there an open GitHub issue for federated images not showing up? It creates links, but the upload seems to have failed, so it just returns a 404 on my end.
-
-
@projectmoon@forum.agnos.is do federated images not work only on your instance, or on here as well?
-
They show up as a link to a long uuid, which when clicked, goes to 404.
-
If you're talking about inline images, they are federating out as relative links. For example, the in the AP for https://community.nodebb.org/post/102818, the 'content' look like:
"content": "<p><img /></p>\n<p> (snip)", "source": { "content": "![c40d9378-d355-4d5c-80b0-b0b43b509e55-image.png](/assets/uploads/files/1737576484993-c40d9378-d355-4d5c-80b0-b0b43b509e55-image.png) (snip)", "mediaType": "text/markdown" }
So if you look at the same post on agnos it's trying to fetch an image relative to the wrong base.</p>
-
@freamon got it thanks. It's a markdown issue which I'll try to address.
-
@projectmoon@forum.agnos.is @freamon
Federated markdown contains relative links to images · Issue #13095 · NodeBB/NodeBB
Markdown plugin needs to listen for markdown post parsing type and replace all image URLs (and link URLs, for that matter) to an absolute URL. There is a helper function in core (used by the emailer) to do this translation already.
GitHub (github.com)