When I post a direct twitter/x link in my forum it is not correctly unfurling. When I post the exact same link here on the discourse forum it is working.
My installed version: 3.6.0.beta1-dev (7c34595144)
I followed the directions to create a twitter consumer ID and secret (from the developers.x.com portal) using the “free” tier.
When I use these generated values and add them in the discourse settings as shown below I am still getting the same incorrectly unfurled twitter post as described in my original post.
Note that my discourse instance is a self-hosted on an AWS EC2 instance.
I am loving the use of the term “unfurling”. We refer to oneboxing here for that functionality. I’ve added the onebox tag and also alerted the staff experience team to look into how the UI might be improved to make it easier to understan what’s going on in a case like this.
I believe there are other cases when the onebox displays an error message in the composer if it won’t be able to create a proper onebox. Maybe that could be a solution here as well. Or as you say just display it as a simple link if it’s not going to onebox correctly.
Looks like in your example you did not leave a line break before the URL to be oneboxed. Here it is looking as expected.