radicle-heartwood-lfs/radicle-node
cloudhead 534503d002
cob: Add support for media embeds in COBs
This change allows for files (blobs) to be embedded into COB entries.
This allows for things like image attachments in issue comments for example.

For now, we only enable this in the `issue` COB.

The way it works is that relevant COB actions carry metadata about which
files are attached to them; and we store those files as blobs inside the
COB entry's *tree* object, under an `embeds/` folder.

The `Embed<T>` type is used for the above, and either carries actual
content, or carries a content-id. Retrieving the actual content is as
simple as asking the repository for a blob with that content-id.

As a possible future extension, MIME types could be stored alongside the
files in a "metadata" file. This could help clients display the content
appropriately.
2023-08-22 14:29:23 +02:00
..
src cob: Add support for media embeds in COBs 2023-08-22 14:29:23 +02:00
Cargo.toml radicle: Import the new SQLite library with bundled binary 2023-07-25 12:30:03 +02:00
Dockerfile docker: Make Dockerfile easier to read 2023-08-03 13:43:20 +02:00