diff options
author | default <nobody@localhost> | 2023-12-26 18:05:49 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-12-26 18:05:49 +0100 |
commit | 4fe99ed7225b3d11a24ebd50a0a171d7fc8a4970 (patch) | |
tree | a9a42e61cda67ef81e0a0997677e2963585f13a4 /html.c | |
parent | 92c27a3038da2043659dee2456d7767dd4a6879b (diff) |
Don't create a link to the people page from the public one.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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", |