NfNitLoop / feoblog

A distributed, cryptographically-verifiable blog / social network
Other
71 stars 4 forks source link

Epic: Support embedded content #85

Open NfNitLoop opened 2 years ago

NfNitLoop commented 2 years ago

This ticket is an "epic" encompassing work we'll probably break up into separate smaller tickets.

Users should be able to embed some content into their posts. For example:

For safety reasons, the markdown renderer doesn't allow users to embed arbitrary HTML, so currently they're limited to image and links and can't embed things inline.

There are several different levels of support I could imagine us adding:

  1. Automatically embed attached video (& audio?) files. (simplest)
  2. Offer some way to embed links to external video.
    • Probably: some new protobuf data for embeddable links.
    • Simplest would to always put them at the end of a post, but could allow some special syntax for placing them?
    • Detect these kinds of URLs pasted into the markdown editor and "fix it up" into the right location?

As we implement different parts of this functionality, we should create separate tickets for those and link them here. Also, please feel free to comment with other use cases you think should be considered. :)

NfNitLoop commented 2 years ago

Ah, right, another thing to think about:

If we auto-embed content, maybe we'll want to add a new field to file attachments that can explicitly opt into/out-of this behavior? That can come much later, though.