Page MenuHomewrite.as

Render oEmbed-enabled content
Open, NormalPublic

Description

Overview

When a user includes a URL from an oEmbed-enabled provider, fetch that oEmbed data and render it in the post instead of the plain URL.

Background

This enables easy embedding of all types of content (see subtasks for some).

Implementation

On publish:

  • Check plain URLs against a list of providers.
  • If the URL matches one, fetch that data (ideally asynchronously, before the user publishes - TODO: create task)
  • Cache that data locally in a new oEmbed database table
    • Retain a cached version for some small amount of time

On post rendering:

  • Check plain URLs against a list of providers
  • If the URL matches one, look it up in the oEmbed table
  • Serve the content from the database
  • If the cached data is expired, fetch it in the background (for the next visitor to see)

Related Objects

Event Timeline

matt created this task.Jun 2 2019, 10:44 PM
matt added a subtask: Restricted Maniphest Task.
matt moved this task from Far Future to Soon / v1.0 on the WriteFreely board.Jul 21 2019, 3:01 AM
matt moved this task from Soon / v1.0 to After Soon on the WriteFreely board.Oct 11 2019, 3:14 PM