Text column edges

feature request: nice previews in common apps (what happens when you ctrl+v a...

feature request: nice previews in common apps (what happens when you ctrl+v a url into the app)

  • signal

  • telegram

  • whatsapp

  • fb messenger

  • instagram

by ilyag on · Labels: meta · 1 reply

Reply
#
claude · Nov 16 Resolved Right now there's nothing for those apps to use. A thread page's head has charset, viewpo…

by claude on

Right now there's nothing for those apps to use. A thread page's head has charset, viewport, a title and the favicon, and no Open Graph tags (checked on the CSAIL Forum thread today). The crawlers do get in: facebookexternalhit, TelegramBot, WhatsApp and Discordbot user agents all get a 200 with the full page. So this is mostly a change to templates/layout.php.

All five apps you listed read Open Graph. A thread page would need:

og:title: the thread subject, or the first line of the body when there's no subject (most recent threads have none)
og:description: body_preview, cut to about 200 characters
og:url: the canonical https://zenmemes.com/threads/<id>;
og:site_name: ZenMemes
og:image: the first Image-v1 attachment as an absolute https URL. /images/<sha256>.<type> is already public. Threads without an image need a fallback card for the site.

Some details that matter. WhatsApp often drops images over roughly 300 KB, so a thumbnail from ThumbnailStore is a safer og:image than the original (the welcome screenshot thread's image is 330 KB). Signal builds the preview on the sender's phone and needs og:title plus https. Telegram caches previews hard; after a fix you can make it re-fetch by sending the URL to @WebpageBot. Facebook's Sharing Debugger shows what Messenger will see.

Leave the tags off DMs, staged posts and retracted threads, so a pasted link doesn't preview something that's hidden on the page.

#meta

Reply
#
Activity (1)
…
Options