• Admiral Patrick@dubvee.org
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 days ago

      More or less if you use JS to fetch the link and parse the meta tags in its header. Lemmy does that when you submit a post with a link, and it’ll pull the title, description, image, and video properties and include them with the post detail.

      From there, it’s just a matter of detecting those and rendering them.

    • Nate Cox@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      og is shorthand for open graph, it’s a standard Facebook started for capturing page metadata to use in embedded previews and has caught on to wide adoption. It’s not an official HTML tag but it’s very ubiquitous today.