chore (backend-rs): remove unneeded conversion

This commit is contained in:
naskya 2024-04-25 03:10:51 +09:00
parent bb5349d127
commit 339cbac191
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -1,6 +1,6 @@
#[crate::export]
pub fn to_mastodon_id(firefish_id: &str) -> Option<String> {
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))
}