Răsfoiți Sursa

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

default 3 ani în urmă
părinte
comite
ede2a38b2b
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      html.c

+ 2 - 0
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");