Skip to content

Commit

Permalink
chore: more rebranding
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexogamer committed Dec 3, 2024
1 parent 15fb9b6 commit 48a0afc
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion crates/core/database/src/drivers/mongodb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
18 changes: 9 additions & 9 deletions crates/core/database/src/events/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,44 +114,44 @@ pub enum EventV1 {
/// Bulk delete messages
BulkMessageDelete { channel: String, ids: Vec<String> },

/// New server
/// New space
ServerCreate {
id: String,
server: Server,
channels: Vec<Channel>,
emojis: Vec<Emoji>,
},

/// Update existing server
/// Update existing space
ServerUpdate {
id: String,
data: PartialServer,
#[serde(default)]
clear: Vec<FieldsServer>,
},

/// Delete server
/// Delete space
ServerDelete { id: String },

/// Update existing server member
/// Update existing space member
ServerMemberUpdate {
id: MemberCompositeKey,
data: PartialMember,
#[serde(default)]
clear: Vec<FieldsMember>,
},

/// 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,
Expand All @@ -160,7 +160,7 @@ pub enum EventV1 {
clear: Vec<FieldsRole>,
},

/// Server role deleted
/// Space role deleted
ServerRoleDelete { id: String, role_id: String },

/// Update existing user
Expand All @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion crates/core/database/src/models/users/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion crates/core/models/src/v0/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crates/delta/src/routes/bots/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<info>")]
pub async fn create_bot(
Expand Down
4 changes: 2 additions & 2 deletions crates/delta/src/routes/servers/server_create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<data>")]
pub async fn create_server(
Expand Down
2 changes: 1 addition & 1 deletion crates/delta/src/util/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 48a0afc

Please sign in to comment.