mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Show the preferredUsername in name is "".
This commit is contained in:
parent
fa9c90c00e
commit
8e27f1d711
2
html.c
2
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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user