From d0a424cbb7fa8bdc941fc1def43dad5d11ea31bf Mon Sep 17 00:00:00 2001 From: Vika Date: Sun, 22 Jan 2023 07:28:24 +0300 Subject: Show rainbow hearts on webinteractions widget too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit More rainbows! 🏳️‍🌈 --- kittybox-rs/templates/src/mf2.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'kittybox-rs') diff --git a/kittybox-rs/templates/src/mf2.rs b/kittybox-rs/templates/src/mf2.rs index fd7eb1e..022a206 100644 --- a/kittybox-rs/templates/src/mf2.rs +++ b/kittybox-rs/templates/src/mf2.rs @@ -385,7 +385,11 @@ markup::define! { footer.webinteractions { ul.counters { li { - span.icon { "❤️" } + span."icon like-icon"["aria-label"="likes"] { + span."like-icon-label"["aria-hidden"="true"] { + "❤️" + } + } span.counter { @post["properties"]["like"].as_array().map(|a| a.len()).unwrap_or(0) } } li { -- cgit 1.4.1