diff options
author | Vika <vika@fireburn.ru> | 2023-01-22 07:28:24 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-01-22 07:28:24 +0300 |
commit | d0a424cbb7fa8bdc941fc1def43dad5d11ea31bf (patch) | |
tree | ee49e87fa75ef31321f68f8552eeba198813cdc8 /kittybox-rs/templates | |
parent | a5b58386ce158928a6697ab8179c0a7a773e472d (diff) | |
download | kittybox-d0a424cbb7fa8bdc941fc1def43dad5d11ea31bf.tar.zst |
Show rainbow hearts on webinteractions widget too
More rainbows! 🏳️🌈
Diffstat (limited to 'kittybox-rs/templates')
-rw-r--r-- | kittybox-rs/templates/src/mf2.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |