diff options
| author | 2023-12-06 07:41:02 +0100 | |
|---|---|---|
| committer | 2023-12-06 07:41:02 +0100 | |
| commit | 7a18a60c3c3c28d65b72a108791aa143ff519bd0 (patch) | |
| tree | f4be5fec37ed318ec17fe8729374219c6f497efb /html.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-7a18a60c3c3c28d65b72a108791aa143ff519bd0.tar.gz snac2-7a18a60c3c3c28d65b72a108791aa143ff519bd0.tar.xz snac2-7a18a60c3c3c28d65b72a108791aa143ff519bd0.zip | |
Show the md5 of the original post in its link in html_actor_icon().
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -133,10 +133,13 @@ xs_html *html_actor_icon(xs_dict *actor, const char *date, | |||
| 133 | 133 | ||
| 134 | 134 | ||
| 135 | if (!xs_is_null(url)) { | 135 | if (!xs_is_null(url)) { |
| 136 | xs *md5 = xs_md5_hex(url, strlen(url)); | ||
| 137 | |||
| 136 | xs_html_add(actor_icon, | 138 | xs_html_add(actor_icon, |
| 137 | xs_html_text(" "), | 139 | xs_html_text(" "), |
| 138 | xs_html_tag("a", | 140 | xs_html_tag("a", |
| 139 | xs_html_attr("href", (char *)url), | 141 | xs_html_attr("href", (char *)url), |
| 142 | xs_html_attr("title", md5), | ||
| 140 | xs_html_text("»"))); | 143 | xs_html_text("»"))); |
| 141 | } | 144 | } |
| 142 | 145 | ||