summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-30 18:28:46 +0200
committerdefault <nobody@localhost>2022-09-30 18:28:46 +0200
commit8e27f1d711d97b58b8886e579b6d9b27fc2348fa (patch)
tree5475ec00060bb143afb826fc7f2db875db2b556e /html.c
parentfa9c90c00e72ee7457be75104655d75fc19315fd (diff)
Show the preferredUsername in name is "".
Diffstat (limited to 'html.c')
-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)
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";
}