From 48a0afc9b76f06dae86b1a9c3b40dfc9ce2fa62c Mon Sep 17 00:00:00 2001 From: Rexogamer Date: Tue, 3 Dec 2024 01:47:05 +0000 Subject: [PATCH] chore: more rebranding --- crates/core/database/src/drivers/mongodb.rs | 2 +- crates/core/database/src/events/client.rs | 18 +++++++++--------- crates/core/database/src/models/users/model.rs | 2 +- crates/core/models/src/v0/messages.rs | 2 +- crates/delta/src/routes/bots/create.rs | 2 +- .../delta/src/routes/servers/server_create.rs | 4 ++-- crates/delta/src/util/test.rs | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/crates/core/database/src/drivers/mongodb.rs b/crates/core/database/src/drivers/mongodb.rs index a4bbe56b..5e017a27 100644 --- a/crates/core/database/src/drivers/mongodb.rs +++ b/crates/core/database/src/drivers/mongodb.rs @@ -25,7 +25,7 @@ impl Deref for MongoDb { #[allow(dead_code)] impl MongoDb { - /// Get the Revolt database + /// Get the Upryzing database pub fn db(&self) -> mongodb::Database { self.database(&self.1) } diff --git a/crates/core/database/src/events/client.rs b/crates/core/database/src/events/client.rs index 836c8833..19bceab0 100644 --- a/crates/core/database/src/events/client.rs +++ b/crates/core/database/src/events/client.rs @@ -114,7 +114,7 @@ pub enum EventV1 { /// Bulk delete messages BulkMessageDelete { channel: String, ids: Vec }, - /// New server + /// New space ServerCreate { id: String, server: Server, @@ -122,7 +122,7 @@ pub enum EventV1 { emojis: Vec, }, - /// Update existing server + /// Update existing space ServerUpdate { id: String, data: PartialServer, @@ -130,10 +130,10 @@ pub enum EventV1 { clear: Vec, }, - /// Delete server + /// Delete space ServerDelete { id: String }, - /// Update existing server member + /// Update existing space member ServerMemberUpdate { id: MemberCompositeKey, data: PartialMember, @@ -141,17 +141,17 @@ pub enum EventV1 { clear: Vec, }, - /// User joins server + /// User joins space ServerMemberJoin { id: String, user: String }, - /// User left server + /// User left space ServerMemberLeave { id: String, user: String, reason: RemovalIntention, }, - /// Server role created or updated + /// Space role created or updated ServerRoleUpdate { id: String, role_id: String, @@ -160,7 +160,7 @@ pub enum EventV1 { clear: Vec, }, - /// Server role deleted + /// Space role deleted ServerRoleDelete { id: String, role_id: String }, /// Update existing user @@ -183,7 +183,7 @@ pub enum EventV1 { /// - Messages /// - DM Channels /// - Relationships - /// - Server Memberships + /// - Space Memberships /// /// User flags are specified to explain why a wipe is occurring though not all reasons will necessarily ever appear. UserPlatformWipe { user_id: String, flags: i32 }, diff --git a/crates/core/database/src/models/users/model.rs b/crates/core/database/src/models/users/model.rs index e52a9cc6..510d27b1 100644 --- a/crates/core/database/src/models/users/model.rs +++ b/crates/core/database/src/models/users/model.rs @@ -284,7 +284,7 @@ impl User { } // Ensure the username itself isn't blocked - const BLOCKED_USERNAMES: &[&str] = &["admin", "revolt"]; + const BLOCKED_USERNAMES: &[&str] = &["admin", "uprzying"]; for username in BLOCKED_USERNAMES { if username_lowercase == *username { diff --git a/crates/core/models/src/v0/messages.rs b/crates/core/models/src/v0/messages.rs index 8b550273..ec36f345 100644 --- a/crates/core/models/src/v0/messages.rs +++ b/crates/core/models/src/v0/messages.rs @@ -494,7 +494,7 @@ impl PushNotification { Self { author: author .map(|x| x.username().to_string()) - .unwrap_or_else(|| "Revolt".to_string()), + .unwrap_or_else(|| "Upryzing".to_string()), icon, image, body, diff --git a/crates/delta/src/routes/bots/create.rs b/crates/delta/src/routes/bots/create.rs index a1f1ff3a..23033867 100644 --- a/crates/delta/src/routes/bots/create.rs +++ b/crates/delta/src/routes/bots/create.rs @@ -7,7 +7,7 @@ use validator::Validate; /// # Create Bot /// -/// Create a new Revolt bot. +/// Create a new Upryzing bot. #[openapi(tag = "Bots")] #[post("/create", data = "")] pub async fn create_bot( diff --git a/crates/delta/src/routes/servers/server_create.rs b/crates/delta/src/routes/servers/server_create.rs index 2b9b8107..758ce8d1 100644 --- a/crates/delta/src/routes/servers/server_create.rs +++ b/crates/delta/src/routes/servers/server_create.rs @@ -6,9 +6,9 @@ use rocket::serde::json::Json; use rocket::State; use validator::Validate; -/// # Create Server +/// # Create Space /// -/// Create a new server. +/// Create a new space. #[openapi(tag = "Server Information")] #[post("/create", data = "")] pub async fn create_server( diff --git a/crates/delta/src/util/test.rs b/crates/delta/src/util/test.rs index a9b22a45..e5ebb2ad 100644 --- a/crates/delta/src/util/test.rs +++ b/crates/delta/src/util/test.rs @@ -80,7 +80,7 @@ impl TestHarness { pub async fn new_user(&self) -> (Account, Session, User) { let account = Account::new( &self.authifier, - format!("{}@revolt.chat", TestHarness::rand_string()), + format!("{}@upryzing.app", TestHarness::rand_string()), "password".to_string(), false, )