diff options
| -rw-r--r-- | html.c | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -634,7 +634,6 @@ static xs_html *html_user_body(snac *user, int local) | |||
| 634 | else { | 634 | else { |
| 635 | xs *n_list = notify_list(user, 1); | 635 | xs *n_list = notify_list(user, 1); |
| 636 | int n_len = xs_list_len(n_list); | 636 | int n_len = xs_list_len(n_list); |
| 637 | xs *n_str = NULL; | ||
| 638 | xs_html *notify_count = NULL; | 637 | xs_html *notify_count = NULL; |
| 639 | 638 | ||
| 640 | /* show the number of new notifications, if there are any */ | 639 | /* 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, | |||
| 1342 | xs *name = actor_name(actor_r); | 1341 | xs *name = actor_name(actor_r); |
| 1343 | 1342 | ||
| 1344 | if (!xs_is_null(name)) { | 1343 | if (!xs_is_null(name)) { |
| 1344 | xs *href = xs_fmt("%s/people#%s", user->actor, p); | ||
| 1345 | |||
| 1345 | xs_html_add(post_header, | 1346 | xs_html_add(post_header, |
| 1346 | xs_html_tag("div", | 1347 | xs_html_tag("div", |
| 1347 | xs_html_attr("class", "snac-origin"), | 1348 | xs_html_attr("class", "snac-origin"), |
| 1348 | xs_html_tag("a", | 1349 | xs_html_tag("a", |
| 1349 | xs_html_attr("href", xs_dict_get(actor_r, "id")), | 1350 | xs_html_attr("href", href), |
| 1350 | xs_html_raw(name)), /* already sanitized */ | 1351 | xs_html_raw(name)), /* already sanitized */ |
| 1351 | xs_html_text(" "), | 1352 | xs_html_text(" "), |
| 1352 | xs_html_text(L("boosted")))); | 1353 | xs_html_text(L("boosted")))); |
| @@ -1974,6 +1975,8 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t) | |||
| 1974 | if (valid_status(actor_get(actor_id, &actor))) { | 1975 | if (valid_status(actor_get(actor_id, &actor))) { |
| 1975 | xs_html *snac_post = xs_html_tag("div", | 1976 | xs_html *snac_post = xs_html_tag("div", |
| 1976 | xs_html_attr("class", "snac-post"), | 1977 | xs_html_attr("class", "snac-post"), |
| 1978 | xs_html_tag("a", | ||
| 1979 | xs_html_attr("name", md5)), | ||
| 1977 | xs_html_tag("div", | 1980 | xs_html_tag("div", |
| 1978 | xs_html_attr("class", "snac-post-header"), | 1981 | xs_html_attr("class", "snac-post-header"), |
| 1979 | html_actor_icon(actor, xs_dict_get(actor, "published"), NULL, NULL, 0))); | 1982 | html_actor_icon(actor, xs_dict_get(actor, "published"), NULL, NULL, 0))); |