From 339cbac191c3cb69c388158d170fef605a8f720c Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 25 Apr 2024 03:10:51 +0900 Subject: [PATCH] chore (backend-rs): remove unneeded conversion --- packages/backend-rs/src/misc/mastodon_id.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend-rs/src/misc/mastodon_id.rs b/packages/backend-rs/src/misc/mastodon_id.rs index 94ba561b58..9cf5d8d5f5 100644 --- a/packages/backend-rs/src/misc/mastodon_id.rs +++ b/packages/backend-rs/src/misc/mastodon_id.rs @@ -1,6 +1,6 @@ #[crate::export] pub fn to_mastodon_id(firefish_id: &str) -> Option { - let decoded: [u8; 16] = basen::BASE36.decode_var_len(&firefish_id.to_ascii_lowercase())?; + let decoded: [u8; 16] = basen::BASE36.decode_var_len(firefish_id)?; Some(basen::BASE10.encode_var_len(&decoded)) }