Images not federating?
-
schrieb vor 22 Tagen zuletzt editiert von
@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.
-
@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.
schrieb vor 22 Tagen zuletzt editiert von julian@community.nodebb.org@projectmoon@forum.agnos.is do federated images not work only on your instance, or on here as well?
-
schrieb vor 22 Tagen zuletzt editiert von
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": " (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>
-
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": " (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>
schrieb vor 22 Tagen zuletzt editiert von@freamon got it thanks. It's a markdown issue which I'll try to address.
-
schrieb vor 21 Tagen zuletzt editiert von
@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)