Merge branch 'master' into reports-fixes

This commit is contained in:
Geometrically
2023-05-25 12:36:13 -07:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@@ -1282,7 +1282,10 @@ pub async fn projects_edit(
)));
}
} else if project.inner.status.is_hidden() {
return Ok(HttpResponse::NotFound().body(""));
return Err(ApiError::InvalidInput(format!(
"Project {} not found",
ProjectId(project.inner.id.0 as u64)
)));
} else {
return Err(ApiError::CustomAuthentication(format!(
"You are not a member of project {}!",

View File

@@ -142,20 +142,25 @@ pub async fn send_discord_webhook(
let emoji_id: i64 = match &**loader {
"bukkit" => 1049793345481883689,
"bungeecord" => 1049793347067314220,
"canvas" => 1107352170656968795,
"datapack" => 1057895494652788866,
"fabric" => 1049793348719890532,
"folia" => 1107348745571537018,
"forge" => 1049793350498275358,
"iris" => 1107352171743281173,
"liteloader" => 1049793351630733333,
"minecraft" => 1049793352964526100,
"modloader" => 1049793353962762382,
"optifine" => 1107352174415052901,
"paper" => 1049793355598540810,
"purpur" => 1049793357351751772,
"quilt" => 1049793857681887342,
"rift" => 1049793359373414502,
"spigot" => 1049793413886779413,
"sponge" => 1049793416969605231,
"vanilla" => 1107350794178678855,
"velocity" => 1049793419108700170,
"waterfall" => 1049793420937412638,
"datapack" => 1057895494652788866,
_ => 1049805243866681424,
};