mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
If an image has no description, try the post 'name' field.
This commit is contained in:
parent
085c5a545a
commit
ede2a38b2b
1 changed files with 2 additions and 0 deletions
2
html.c
2
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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue