diff options
| author | 2023-12-26 18:05:49 +0100 | |
|---|---|---|
| committer | 2023-12-26 18:05:49 +0100 | |
| commit | 4fe99ed7225b3d11a24ebd50a0a171d7fc8a4970 (patch) | |
| tree | a9a42e61cda67ef81e0a0997677e2963585f13a4 | |
| parent | The "boosted" link in html_entry() points to the user in the people page. (diff) | |
| download | snac2-4fe99ed7225b3d11a24ebd50a0a171d7fc8a4970.tar.gz snac2-4fe99ed7225b3d11a24ebd50a0a171d7fc8a4970.tar.xz snac2-4fe99ed7225b3d11a24ebd50a0a171d7fc8a4970.zip | |
Don't create a link to the people page from the public one.
| -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, | |||
| 1341 | xs *name = actor_name(actor_r); | 1341 | xs *name = actor_name(actor_r); |
| 1342 | 1342 | ||
| 1343 | if (!xs_is_null(name)) { | 1343 | if (!xs_is_null(name)) { |
| 1344 | xs *href = xs_fmt("%s/people#%s", user->actor, p); | 1344 | xs *href = NULL; |
| 1345 | |||
| 1346 | if (user != NULL) | ||
| 1347 | href = xs_fmt("%s/people#%s", user->actor, p); | ||
| 1348 | else | ||
| 1349 | href = xs_dup(xs_dict_get(actor_r, "id")); | ||
| 1345 | 1350 | ||
| 1346 | xs_html_add(post_header, | 1351 | xs_html_add(post_header, |
| 1347 | xs_html_tag("div", | 1352 | xs_html_tag("div", |