From ede2a38b2bb98b34ac44dcd6ed8710a25fe09990 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 25 Jul 2023 12:36:04 +0200 Subject: [PATCH] If an image has no description, try the post 'name' field. --- html.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html.c b/html.c index 4f7f982..976a244 100644 --- a/html.c +++ b/html.c @@ -1193,6 +1193,8 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, continue; const char *name = xs_dict_get(v, "name"); + if (xs_is_null(name)) + name = xs_dict_get(msg, "name"); if (xs_is_null(name)) name = L("No description");