diff options
author | default <nobody@localhost> | 2022-09-30 18:28:46 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-30 18:28:46 +0200 |
commit | 8e27f1d711d97b58b8886e579b6d9b27fc2348fa (patch) | |
tree | 5475ec00060bb143afb826fc7f2db875db2b556e | |
parent | fa9c90c00e72ee7457be75104655d75fc19315fd (diff) |
Show the preferredUsername in name is "".
-rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -160,7 +160,7 @@ d_char *html_msg_icon(snac *snac, d_char *os, char *msg) char *v; /* get the name */ - if ((v = xs_dict_get(actor, "name")) == NULL) { + if ((v = xs_dict_get(actor, "name")) == NULL || *v == '\0') { if ((v = xs_dict_get(actor, "preferredUsername")) == NULL) { v = "user"; } |