If an image has no description, try the post 'name' field.

This commit is contained in:
default 2023-07-25 12:36:04 +02:00
parent 085c5a545a
commit ede2a38b2b

2
html.c
View file

@ -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");