NewsCrawler.org

Link Previews and You: How Sable Generates Them

Sable, an almost stable Matrix client
Image: sable.moe

This post by Daisy Forest, UX Engineer at Sable, a Matrix client, explains how link previews work and why Sable generates them differently from other apps. A link preview is the small block under a link that hints at what the page contains. Discord's servers fetch the page and cache its metadata, while Signal generates the preview on the sender's device so that the recipient's phone does not contact the linked site.

In Matrix, the first method was the /preview_url endpoint on the user's homeserver[1], which many clients disable in encrypted rooms because the server could see which sites people share. Preview bots were added later, but they are inconvenient in private messages and would require users to run their own bots. MSC4095 lets clients attach previews to messages, so the sender generates them, but web clients cannot do this for all users because of CORS[2], so Sable ended up with three separate ways to get previews.

Sable has moved preview generation into a separate library and added an OpenGraph[3] extension for social media notes. It is also testing a privacy-preserving proxy on its own infrastructure, no longer using CloudFlare. The team says success depends on scaling the infrastructure, preventing abuse, and whether sites block its user agents. Future plans include a clearer interface about privacy and possibly dropping the homeserver for generating previews.

Read the original sable.moeDiscussion

Discussion

Commenters focus on privacy. One notes that webmail such as GMail proxies email images through Google's cache, which still discloses some information. Another says that a web app that generates previews would leak what links users share, and a third describes an IRC client that runs its link preview fetching in a separate service so that a malicious link cannot reach user data.

Sources

Published: First seen: Читать по-русски

Open as a page