diff options
| author | default <nobody@localhost> | 2025-02-06 09:25:53 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-02-06 09:25:53 +0100 |
| commit | 4ed3a01474dbb99597ce219ad5418df7557f6459 (patch) | |
| tree | e89523d25e36c267d0a3809403a04d672ec5d523 | |
| parent | f9796044c6c1fda786bd608987c1f41d5244e528 (diff) | |
Added an anchor to the post link in the date.
| -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, xs_html *date_text = xs_html_text(date_label); if (user && md5) { - xs *lpost_url = xs_fmt("%s/admin/p/%s", - user->actor, md5); + xs *lpost_url = xs_fmt("%s/admin/p/%s#%s_entry", + user->actor, md5, md5); date_text = xs_html_tag("a", xs_html_attr("href", lpost_url), + xs_html_attr("class", "snac-pubdate"), date_text); } else if (user && url) { @@ -240,6 +241,7 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date, user->actor, xs_url_enc(url)); date_text = xs_html_tag("a", xs_html_attr("href", lpost_url), + xs_html_attr("class", "snac-pubdate"), date_text); } |