aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreen <dandelions@disroot.org>2025-06-16 21:07:11 +0200
committergreen <dandelions@disroot.org>2025-11-14 17:22:11 +0100
commitfd326d139b06d4a8c9b85b5ab267d34190d48def (patch)
treeb01b28e5455e3eec851fccc9fbbd7457a4e668e6
parent380e5b397ef070061cd4393d529bd6d0f0d3eb0b (diff)
metadata: hide the divider when user has no normal fields
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index f8e34f2..454c8be 100644
--- a/html.c
+++ b/html.c
@@ -3395,14 +3395,14 @@ xs_html *html_people_list(snac *user, xs_list *list, const char *header, const c
count++;
}
- if (count > 0) {
+ const xs_list *attachment = xs_dict_get(actor, "attachment");
+ if (count > 0 && xs_list_len(attachment) > 0) {
xs_html_add(snac_metadata,
xs_html_sctag("hr",
xs_html_attr("class", "snac-property-divider")));
}
const xs_val *v;
- const xs_list *attachment = xs_dict_get(actor, "attachment");
xs_list_foreach(attachment, v) {
const char *type = xs_dict_get(v, "type");
const char *name = xs_dict_get(v, "name");