Browse Source

Merge pull request 'hexbear rebrand' (#298) from feature/hexbear-namechange into main

Reviewed-on: https://git.chapo.chat/chapo-collective/lemmy-hexbear/pulls/298
dev
DashEightMate 1 year ago
parent
commit
87501f8028
  1. 2
      server/lemmy_db/src/moderator_views.rs
  2. 2
      server/src/twofactor.rs
  3. 2
      server/src/websocket/chat_server.rs

2
server/lemmy_db/src/moderator_views.rs

@ -655,7 +655,7 @@ impl ModAddCommunityView {
community_id,
removed,
when_,
"ChapoModerator".into_sql::<Text>(),
"HexbearModerator".into_sql::<Text>(),
other_user_name,
community_name,
));

2
server/src/twofactor.rs

@ -48,7 +48,7 @@ impl CodeCacheHandler {
//code is valid for one hour
}
let subject = &format!("ChapoChat: Attempted login for {}", &user.name);
let subject = &format!("Hexbear: Attempted login for {}", &user.name);
let time = Utc::now().format("%Y-%m-%d %H:%M:%S");
let html = &format!("<h1>Attempted login for {}</h1><br><p>At {} UTC a login was attempted on your account.
Because your account is setup with two-factor authentication, you must enter a code to successfully login. This code will expire within one hour.</p>

2
server/src/websocket/chat_server.rs

@ -504,7 +504,7 @@ impl ChatServer {
do_user_operation::<ResolveCommentReport>(args).await
}
// chapo specific
// hexbear specific
UserOperation::FeaturePost => do_user_operation::<FeaturePost>(args).await,
UserOperation::LeaveRooms => do_user_operation::<LeaveRooms>(args).await,
UserOperation::PostJoin => do_user_operation::<PostJoin>(args).await,

Loading…
Cancel
Save