From 4fe99ed7225b3d11a24ebd50a0a171d7fc8a4970 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 26 Dec 2023 18:05:49 +0100 Subject: [PATCH] Don't create a link to the people page from the public one. --- html.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/html.c b/html.c index a4b9df4..9f346a8 100644 --- a/html.c +++ b/html.c @@ -1341,7 +1341,12 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local, xs *name = actor_name(actor_r); if (!xs_is_null(name)) { - xs *href = xs_fmt("%s/people#%s", user->actor, p); + xs *href = NULL; + + if (user != NULL) + href = xs_fmt("%s/people#%s", user->actor, p); + else + href = xs_dup(xs_dict_get(actor_r, "id")); xs_html_add(post_header, xs_html_tag("div",