Use ssbget for images

main
cel 5 years ago
parent 1723009e26
commit d0c716b6ed
Signed by: cel
GPG Key ID: C28D95BB012367EA

@ -29,6 +29,7 @@ static const size_t sigil_size = sizeof("§")-1;
static const int id_length = 16; static const int id_length = 16;
static const char ssb_ref_base[] = "http://localhost:8027/"; static const char ssb_ref_base[] = "http://localhost:8027/";
static const char ssb_blob_base[] = "ssbget:";
static const char ssb_channel_base[] = "http://localhost:8027/channel/"; static const char ssb_channel_base[] = "http://localhost:8027/channel/";
static const int max_cols = 54; static const int max_cols = 54;
@ -683,7 +684,7 @@ md_rndr_image(struct buf *ob, const struct buf *link, const struct buf *title, c
if (!link || !link->size) return 0; if (!link || !link->size) return 0;
BUFPUTSL(ob, "<img src=\""); BUFPUTSL(ob, "<img src=\"");
BUFPUTSL(ob, ssb_ref_base); BUFPUTSL(ob, ssb_blob_base);
houdini_escape_href(ob, link->data, link->size); houdini_escape_href(ob, link->data, link->size);
BUFPUTSL(ob, "\" alt=\""); BUFPUTSL(ob, "\" alt=\"");

Loading…
Cancel
Save