From b1612de2102d9c30bf42402f38ffdc52ab482674 Mon Sep 17 00:00:00 2001 From: grunfink Date: Mon, 12 Jan 2026 05:11:45 +0100 Subject: Minor tweak. --- html.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/html.c b/html.c index 9aaaa50..9e96108 100644 --- a/html.c +++ b/html.c @@ -168,14 +168,16 @@ xs_str *actor_pronouns(xs_dict *actor) const xs_list *attachment; const xs_dict *d; const char *pronouns = ""; - char *ret; + xs_str *ret; - if (!xs_is_null((attachment = xs_dict_get(actor, "attachment")))) { + if (xs_is_list((attachment = xs_dict_get(actor, "attachment")))) { xs_list_foreach(attachment, d) { - char *prop = xs_utf8_to_lower(xs_dict_get(d, "name")); + xs *prop = xs_utf8_to_lower(xs_dict_get(d, "name")); /* make sure that we are reading the correct metadata */ - if (strlen(prop) == 8 && strcmp(prop, "pronouns") == 0) + if (strlen(prop) == 8 && strcmp(prop, "pronouns") == 0) { pronouns = xs_dict_get(d, "value"); + break; + } } } -- cgit v1.2.3