New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared Photos not rendering on Discourse forums due to object tag #32148
Comments
You need to use the download link, not the preview :)
|
But I guess we could also do the same trick with the .jpg at the end :) |
Is the expected behavior:
Based on some brief testing on https://try.discourse.org, the 2nd option already works as expected (as long as the link is on its own line). |
Better to ask discourse devs literally. meta.discourse.org Their exact advice:
If you want clarification you can ask them; they are a friendly and responsive bunch. |
@sunjam My interpretation is that Falco's (discourse dev) suggestion was to add the However, after reading your original post on the linked thread, I was wondering if you only expected the 2nd option to display as embedded instead of both the 1st and 2nd option--could you clarify what you imagine the "expected behavior" is? Also, @skjnldsv I was wondering if the current behavior is what's expected--that the 1st option generates a link preview instead of an embedded image when shared on Discourse. |
Seems like the issue is fixed. Thread on meta.discourse.org specifically says that links with '/preview' on the end don't display inline but if you test it on try.discourse.org as carlcsaposs says, they do. |
thanks for checking |
Describe the bug
Sometimes shared photos are one-boxed when they should be embedded. See this discussion on the forum for why Nextcloud photos are not displayed properly.
This is because of a missing og:type meta tag. Currently it is set to object. If it was set to image onebox would treat it as such.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Image can be shared to a discourse forum and embedded with the proper url scheme.
The text was updated successfully, but these errors were encountered: