commit ede2a38

default  ·  2023-07-25 10:36:04 +0000 UTC
parent 085c5a5
If an image has no description, try the post 'name' field.
1 files changed,  +2, -0
M html.c
M html.c
+2, -0
1@@ -1193,6 +1193,8 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
2                 continue;
3 
4             const char *name = xs_dict_get(v, "name");
5+            if (xs_is_null(name))
6+                name = xs_dict_get(msg, "name");
7             if (xs_is_null(name))
8                 name = L("No description");
9