Server projects post launch fixes (#5481)

* Vendor async-minecraft-ping and fix servers returning protocol version -1

* Don't have automod reject server projects

* fmt

* Add region to search facets

* remove AMP .github
This commit is contained in:
aecsocket
2026-03-08 00:17:38 +00:00
committed by GitHub
parent 507d03eeba
commit ace2659861
20 changed files with 1836 additions and 25 deletions

View File

@@ -176,9 +176,9 @@ pub async fn init_client_with_database(
latency_ms Nullable(UInt32),
description Nullable(String),
version_name Nullable(String),
version_protocol Nullable(UInt32),
players_online Nullable(UInt32),
players_max Nullable(UInt32)
version_protocol Nullable(Int32),
players_online Nullable(Int32),
players_max Nullable(Int32)
)
ENGINE = {engine}
{ttl}

View File

@@ -387,13 +387,13 @@ pub struct JavaServerPingData {
/// Reported version name of the server.
pub version_name: String,
/// Reported version protocol number of the server.
pub version_protocol: u32,
pub version_protocol: i32,
/// Description/MOTD of the server as shown in the server list.
pub description: String,
/// Number of players online at the time.
pub players_online: u32,
pub players_online: i32,
/// Maximum number of players allowed on the server.
pub players_max: u32,
pub players_max: i32,
}
component::relations! {

View File

@@ -656,7 +656,7 @@ impl AutomatedModerationQueue {
)
.await?;
if mod_messages.should_reject(first_time) {
if mod_messages.should_reject(first_time) && !is_server_project {
ThreadMessageBuilder {
author_id: Some(database::models::DBUserId(AUTOMOD_ID)),
body: MessageBody::StatusChange {

View File

@@ -305,9 +305,9 @@ struct ServerPingRecord {
latency_ms: Option<u32>,
description: Option<String>,
version_name: Option<String>,
version_protocol: Option<u32>,
players_online: Option<u32>,
players_max: Option<u32>,
version_protocol: Option<i32>,
players_online: Option<i32>,
players_max: Option<i32>,
}
#[cfg(test)]

View File

@@ -641,6 +641,7 @@ const DEFAULT_ATTRIBUTES_FOR_FACETING: &[&str] = &[
"client_side",
"server_side",
"minecraft_server.country",
"minecraft_server.region",
"minecraft_server.languages",
"minecraft_java_server.content.kind",
"minecraft_java_server.content.supported_game_versions",