mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Show the preferredUsername in name is "".
This commit is contained in:
parent
fa9c90c00e
commit
8e27f1d711
1 changed files with 1 additions and 1 deletions
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 a new issue