commit 4fe99ed
default
·
2023-12-26 17:05:49 +0000 UTC
parent 92c27a3
Don't create a link to the people page from the public one.
1 files changed,
+6,
-1
M
html.c
M
html.c
+6,
-1
1@@ -1341,7 +1341,12 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
2 xs *name = actor_name(actor_r);
3
4 if (!xs_is_null(name)) {
5- xs *href = xs_fmt("%s/people#%s", user->actor, p);
6+ xs *href = NULL;
7+
8+ if (user != NULL)
9+ href = xs_fmt("%s/people#%s", user->actor, p);
10+ else
11+ href = xs_dup(xs_dict_get(actor_r, "id"));
12
13 xs_html_add(post_header,
14 xs_html_tag("div",