Skip to content

Commit

Permalink
as base64
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Jul 10, 2023
1 parent 02f06eb commit 2904924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/api/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use actix_web::web::Data;
use base64::{engine::general_purpose::STANDARD_NO_PAD, Engine};
use base64::{engine::general_purpose::STANDARD_NO_PAD as base64, Engine};
use captcha::Captcha;
use lemmy_api_common::{context::LemmyContext, utils::local_site_to_slur_regex};
use lemmy_db_schema::source::local_site::LocalSite;
Expand Down Expand Up @@ -59,7 +59,7 @@ pub(crate) fn captcha_as_wav_base64(captcha: &Captcha) -> Result<String, LemmyEr
));
}

Ok(STANDARD_NO_PAD.encode(output_buffer.into_inner()))
Ok(base64.encode(output_buffer.into_inner()))
}

/// Check size of report and remove whitespace
Expand Down

0 comments on commit 2904924

Please sign in to comment.