aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-02-06 09:25:53 +0100
committerdefault <nobody@localhost>2025-02-06 09:25:53 +0100
commit4ed3a01474dbb99597ce219ad5418df7557f6459 (patch)
treee89523d25e36c267d0a3809403a04d672ec5d523
parentf9796044c6c1fda786bd608987c1f41d5244e528 (diff)
Added an anchor to the post link in the date.
-rw-r--r--html.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/html.c b/html.c
index 8ad79de..13615b9 100644
--- a/html.c
+++ b/html.c
@@ -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);
}