snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 8e27f1d711d97b58b8886e579b6d9b27fc2348fa
parent fa9c90c00e72ee7457be75104655d75fc19315fd
Author: default <nobody@localhost>
Date:   Fri, 30 Sep 2022 18:28:46 +0200

Show the preferredUsername in name is "".

Diffstat:
Mhtml.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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"; }