Disable link previews?

yes

also yes, there are special cases like youtube that embed the media directly rather than providing a link preview (various special cases are listed discourse/spec/fixtures/onebox at f5cbc3e3b8a58132fc835aeab4d2275719ebe8ab · discourse/discourse · GitHub… so also Amazon, Instagram, Spotify, Twitter, etc)

If ultimately you want the behavior to be “just show the link” without previews or embeds of any kind, then you can set that setting to 0.

There’s also a more specific setting, blocked onebox domains, that you can add domains to if there are only a small number not providing useful previews.

Also note that once disabled, it won’t be applied retroactively on existing posts, the HTML of the posts with the oneboxes will need to be rebuilt. That can be done via the rails console: Rebake all posts? - #2 by zogstrip

5 Likes