Forum: the link module, with YouTube previews
- services/forum/src/links: recognises the links in a post and shows a preview for the ones a provider knows; for now YouTube (watch, shorts, live, embed and youtu.be links, with the start time). Title and channel come from YouTube's oEmbed answer, the thumbnail is cut to 16:9 and kept in our own storage, so reading a thread loads nothing from YouTube. Made when a post is written or edited; without it the link stays text. - The card: on a computer a click plays the video in place (youtube-nocookie.com); on a phone it opens the YouTube app (Android: an intent with the web page as fallback; iOS: the link the app takes over), and "Lejátszás itt" plays it in place. - The privacy notice (HU, EN) says what YouTube sees when one plays it. - "Pörgős most" is now "Élénk beszélgetések"; the new thread form lost its note about text and emoji. - docs: the Turnstile captcha is on the list before going live. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -159,8 +159,8 @@ export default async function ForumHomePage() {
|
||||
{hot.length > 0 && (
|
||||
<section className="fh-section o-5" aria-labelledby="fh-hot">
|
||||
<div className="fh-section-head">
|
||||
<h2 id="fh-hot">Pörgős most</h2>
|
||||
<span className="hint">az utóbbi 24 órában</span>
|
||||
<h2 id="fh-hot">Élénk beszélgetések</h2>
|
||||
<span className="hint">ma sokan írtak bennük</span>
|
||||
</div>
|
||||
<div className="fh-card fh-flush">
|
||||
<ThreadList threads={hot} />
|
||||
|
||||
Reference in New Issue
Block a user