summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index 31af896..9687bed 100644
--- a/html.c
+++ b/html.c
@@ -160,7 +160,7 @@ d_char *html_msg_icon(snac *snac, d_char *os, char *msg)
160 char *v; 160 char *v;
161 161
162 /* get the name */ 162 /* get the name */
163 if ((v = xs_dict_get(actor, "name")) == NULL) { 163 if ((v = xs_dict_get(actor, "name")) == NULL || *v == '\0') {
164 if ((v = xs_dict_get(actor, "preferredUsername")) == NULL) { 164 if ((v = xs_dict_get(actor, "preferredUsername")) == NULL) {
165 v = "user"; 165 v = "user";
166 } 166 }