diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -229,10 +229,11 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date, | |||
| 229 | xs_html *date_text = xs_html_text(date_label); | 229 | xs_html *date_text = xs_html_text(date_label); |
| 230 | 230 | ||
| 231 | if (user && md5) { | 231 | if (user && md5) { |
| 232 | xs *lpost_url = xs_fmt("%s/admin/p/%s", | 232 | xs *lpost_url = xs_fmt("%s/admin/p/%s#%s_entry", |
| 233 | user->actor, md5); | 233 | user->actor, md5, md5); |
| 234 | date_text = xs_html_tag("a", | 234 | date_text = xs_html_tag("a", |
| 235 | xs_html_attr("href", lpost_url), | 235 | xs_html_attr("href", lpost_url), |
| 236 | xs_html_attr("class", "snac-pubdate"), | ||
| 236 | date_text); | 237 | date_text); |
| 237 | } | 238 | } |
| 238 | else if (user && url) { | 239 | else if (user && url) { |
| @@ -240,6 +241,7 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date, | |||
| 240 | user->actor, xs_url_enc(url)); | 241 | user->actor, xs_url_enc(url)); |
| 241 | date_text = xs_html_tag("a", | 242 | date_text = xs_html_tag("a", |
| 242 | xs_html_attr("href", lpost_url), | 243 | xs_html_attr("href", lpost_url), |
| 244 | xs_html_attr("class", "snac-pubdate"), | ||
| 243 | date_text); | 245 | date_text); |
| 244 | } | 246 | } |
| 245 | 247 | ||