summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-12-26 14:04:13 +0100
committerdefault <nobody@localhost>2023-12-26 14:04:13 +0100
commit92c27a3038da2043659dee2456d7767dd4a6879b (patch)
tree891fc11738eaaa56b183a167c0103eac1a0f6222
parente8b94c1773f5ec9fee6fab1e57722686c641da0a (diff)
The "boosted" link in html_entry() points to the user in the people page.
This way, it's easier to do something on someone whom we follow, like MUTE them, limit, etc.
-rw-r--r--html.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/html.c b/html.c
index 6c65d3b..a4b9df4 100644
--- a/html.c
+++ b/html.c
@@ -634,7 +634,6 @@ static xs_html *html_user_body(snac *user, int local)
else {
xs *n_list = notify_list(user, 1);
int n_len = xs_list_len(n_list);
- xs *n_str = NULL;
xs_html *notify_count = NULL;
/* show the number of new notifications, if there are any */
@@ -1342,11 +1341,13 @@ 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_html_add(post_header,
xs_html_tag("div",
xs_html_attr("class", "snac-origin"),
xs_html_tag("a",
- xs_html_attr("href", xs_dict_get(actor_r, "id")),
+ xs_html_attr("href", href),
xs_html_raw(name)), /* already sanitized */
xs_html_text(" "),
xs_html_text(L("boosted"))));
@@ -1974,6 +1975,8 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t)
if (valid_status(actor_get(actor_id, &actor))) {
xs_html *snac_post = xs_html_tag("div",
xs_html_attr("class", "snac-post"),
+ xs_html_tag("a",
+ xs_html_attr("name", md5)),
xs_html_tag("div",
xs_html_attr("class", "snac-post-header"),
html_actor_icon(actor, xs_dict_get(actor, "published"), NULL, NULL, 0)));