diff options
author | Vika <vika@fireburn.ru> | 2022-11-08 11:45:10 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-11-08 11:45:10 +0300 |
commit | a45a856e6a20d78995fa3a50f8161d25148e40d3 (patch) | |
tree | 4e17032686a8daf400cfdac2637d36a4d63bf8e0 /kittybox-rs/templates/src | |
parent | 91b17ce12472ac1c6885e00575be1242b4cd1b5a (diff) | |
download | kittybox-a45a856e6a20d78995fa3a50f8161d25148e40d3.tar.zst |
templates: ellipsize u-in-reply-to to 48, not 24
Diffstat (limited to 'kittybox-rs/templates/src')
-rw-r--r-- | kittybox-rs/templates/src/mf2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kittybox-rs/templates/src/mf2.rs b/kittybox-rs/templates/src/mf2.rs index 41cd6cc..67d1f87 100644 --- a/kittybox-rs/templates/src/mf2.rs +++ b/kittybox-rs/templates/src/mf2.rs @@ -126,7 +126,7 @@ markup::define! { @if let Some(ctx) = ctx.as_str() { li { a."u-in-reply-to"[href=ctx] { - @ctx.truncate_ellipse(24).as_ref() + @ctx.truncate_ellipse(48).as_ref() } } } else if let Some(ctx) = ctx.as_object() { @@ -138,7 +138,7 @@ markup::define! { @ctx["properties"]["uid"][0] .as_str() .unwrap_or_else(|| ctx["properties"]["url"][0].as_str().unwrap()) - .truncate_ellipse(24) + .truncate_ellipse(48) .as_ref() } } |