Twitter/X-links worden niet correct geopend

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)

Correctly Unfurled Example on discourse.org forums
https://x.com/ryanhallyall/status/1961057800693453214

Screenshot of my site incorrectly unfurled

1 like

Have you followed the steps in Configuring Twitter login and rich embeds for Discourse?

1 like

Ik heb NIET. Bedankt dat u me in de juiste richting heeft gewezen!

1 like

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 think that’s the problem

But I agree the default experience could be improved so you don’t end up with a blank onebox when twitter settings not configured

2 likes

Oh mijn hemel… ik schaam me. Ik heb de eerste paragraaf van de documentatie met het gigantische waarschuwingsbord niet gelezen! Wat ben je aardig dat je me niet berispt!

Ik waardeer de snelle behulpzaamheid die hier op het forum wordt geboden.

3 likes

Yes, perhaps it should default to just the link if it isn’t configured.

4 likes

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.

1 like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.