禁用链接预览功能?

Link previews are more often wrong than right, often showing content unrelated to the URL (not Discourse fault, I know it’s very hard to sum up the content of a web page).

Also I think it gives too much weight to the URL - a link is usually for extra info, while with this feature that link often takes 95% of the post space, which is not only unnecessary, but also illogical. What’s important is the text content on the forum, not the content on another linked website.

As an example, a link to a GitHub page includes the owner’s avatar, which is irrelevant. If you link to a release, it won’t show the text of the release, but the “about” summary of the GitHub repo, which is also not relevant. This is true of many websites actually (noticed it with Patreon articles too) - the “summary” is often related to the entire website, not to the specific page.

So since, in my opinion, this feature doesn’t work so well, I would like to disable it at admin level for the entire website. Is there currently an option for this? I couldn’t find one, but I might have missed it.

Add a space in front of the link if you do not want a onebox.

Also can you provide examples of where the onebox is “wrong”? I don’t agree with your general rationale here and I need to see specifics.

Yes I came across this trick, but I’d rather disable it for the whole forum if possible.

One example is this one: Joplin 1.0.157 - Links of notes between notes broken - #6 by laurent - Support - Joplin Forum

I link to a GitHub release but it shows unrelated text and my unrelated avatar.

I’m not so keen on the Patreon links either: Note history feature now in Joplin - News - Joplin Forum

It’s better, but about 50% of the box doesn’t matter: the image is off-topic, and the text that matters only starts towards the bottom - “The latest versions of Joplin adds support…”. It’s probably tricky to improve this, which is why I’m fine with not having the previews at all.

If it is a global improvement to oneboxes for a popular major site that is usually preferable.

This is something to bring up with Github. They can improve this by adding the appropriate metadata on the release page.

Instead of disabling it globally, why not work with it? Consider the following options:


This is fixed in Joplin release v1.0.158

This is fixed in [Joplin release v1.0.158](https://github.com/laurent22/joplin/releases/tag/v1.0.158)

Or @codinghorror’s suggestion (below)? Much nicer than a bare link.


Release v1.0.158 · laurent22/joplin · GitHub

This is fixed in Release v1.0.158 · laurent22/joplin · GitHub

 https://github.com/laurent22/joplin/releases/tag/v1.0.158

This is fixed in https://github.com/laurent22/joplin/releases/tag/v1.0.158

If you really want to disable it, you already have various settings to control the behaviour:

  • onebox domains blacklist
  • max oneboxes per post

我看到 GitHub 的信息框已经得到了大幅改进。现在它显示的是正确的图标,而不是头像,同时还包括了问题的摘要、标签、日期以及其他元数据。

感谢你们出色的工作,以及持续改进 Discourse!

@david 在这里做了很棒的工作,感谢你的反馈!

我也推荐他的主题组件,可以添加实时状态信息:

例如: