The issue of Nextcloud images not displaying in Discourse is being discussed. sunjam shared a link that should embed an image directly into the post but doesn’t work in Discourse. Falco suggested that an extension for images is needed or that the link needs to be explicitly marked as an image.
Falco explained that Nextcloud links don’t work because they don’t have the correct MIME type, unlike pfaffman’s Google Photos example which is an HTML document with a dedicated oneboxing engine.
The discussion continued with microfx and tobiaseigen who would like to see a more straightforward solution, such as a button in Nextcloud to copy the preview link with an added ?format=.jpg parameter. Falco suggested that Nextcloud could fix the issue by setting a proper og:type meta tag to image. sunjam shared a related Nextcloud issue on GitHub.
This is default behaviour of Nextcloud, which does not work within Discourse for some reason. It is discussed on the Nextcloud forum here. Thanks for any guidance or suggestions!
What’s the status on this? I’d love to be able to just dump a nextcloud link and then see it as a picture in discourse! I suppose we need a button in nextcloud which copies the preview link with added ?format=.jpg by default in the sharing tab?
I’d like to be able to do this too. Hmm.. let me do a test. Ok, when I get the sharing link and paste it, it becomes oneboxed. This is fine for me, though of course it would be nice if it showed up more prettily.