Remove discriminator from new images to existing submissions

main
Elnu 1 year ago
parent 6a0a99c193
commit ac7909da8d

@ -125,10 +125,9 @@ pub async fn submit(ctx: Context<'_>, submission: serenity::Attachment) -> Resul
} }
requires_rebuild = true; requires_rebuild = true;
let file_name = format!( let file_name = format!(
"{}-{}-{}-{}{}.{}", "{}-{}-{}{}.{}",
i + 1, i + 1,
slugify(&author.name), slugify(&author.name),
author.discriminator,
timestamp, timestamp,
if i == 0 { if i == 0 {
"".to_owned() "".to_owned()

Loading…
Cancel
Save