Migrate additional names in src/

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-05-14 03:04:11 +00:00
parent 75e92a01c7
commit 0463b962fd
9 changed files with 29 additions and 29 deletions

View File

@@ -33,7 +33,7 @@ pub(crate) async fn get_media_config_legacy_route(
/// # `GET /_matrix/media/v1/config`
///
/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
/// clients may call. conduwuit adds these for compatibility purposes.
/// clients may call. Tuwunel adds these for compatibility purposes.
/// See <https://spec.matrix.org/legacy/legacy/#id27>
///
/// Returns max upload size.
@@ -92,7 +92,7 @@ pub(crate) async fn get_media_preview_legacy_route(
/// # `GET /_matrix/media/v1/preview_url`
///
/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
/// clients may call. conduwuit adds these for compatibility purposes.
/// clients may call. Tuwunel adds these for compatibility purposes.
/// See <https://spec.matrix.org/legacy/legacy/#id27>
///
/// Returns URL preview.
@@ -111,7 +111,7 @@ pub(crate) async fn get_media_preview_legacy_legacy_route(
/// Permanently save media in the server.
///
/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
/// clients may call. conduwuit adds these for compatibility purposes.
/// clients may call. Tuwunel adds these for compatibility purposes.
/// See <https://spec.matrix.org/legacy/legacy/#id27>
///
/// - Some metadata will be saved in the database
@@ -199,7 +199,7 @@ pub(crate) async fn get_content_legacy_route(
/// Load media from our server or over federation.
///
/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
/// clients may call. conduwuit adds these for compatibility purposes.
/// clients may call. Tuwunel adds these for compatibility purposes.
/// See <https://spec.matrix.org/legacy/legacy/#id27>
///
/// - Only allows federation if `allow_remote` is true
@@ -290,7 +290,7 @@ pub(crate) async fn get_content_as_filename_legacy_route(
/// Load media from our server or over federation, permitting desired filename.
///
/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
/// clients may call. conduwuit adds these for compatibility purposes.
/// clients may call. Tuwunel adds these for compatibility purposes.
/// See <https://spec.matrix.org/legacy/legacy/#id27>
///
/// - Only allows federation if `allow_remote` is true
@@ -381,7 +381,7 @@ pub(crate) async fn get_content_thumbnail_legacy_route(
/// Load media thumbnail from our server or over federation.
///
/// This is a legacy endpoint ("/v1/") that some very old homeservers and/or
/// clients may call. conduwuit adds these for compatibility purposes.
/// clients may call. Tuwunel adds these for compatibility purposes.
/// See <https://spec.matrix.org/legacy/legacy/#id27>
///
/// - Only allows federation if `allow_remote` is true

View File

@@ -354,7 +354,7 @@ async fn join_room_by_id_helper_remote(
info!("make_join finished");
let Some(room_version_id) = make_join_response.room_version else {
return Err!(BadServerResponse("Remote room version is not supported by conduwuit"));
return Err!(BadServerResponse("Remote room version is not supported by tuwunel"));
};
if !services
@@ -362,7 +362,7 @@ async fn join_room_by_id_helper_remote(
.supported_room_version(&room_version_id)
{
return Err!(BadServerResponse(
"Remote room version {room_version_id} is not supported by conduwuit"
"Remote room version {room_version_id} is not supported by tuwunel"
));
}
@@ -810,7 +810,7 @@ async fn join_room_by_id_helper_local(
};
let Some(room_version_id) = make_join_response.room_version else {
return Err!(BadServerResponse("Remote room version is not supported by conduwuit"));
return Err!(BadServerResponse("Remote room version is not supported by tuwunel"));
};
if !services
@@ -818,7 +818,7 @@ async fn join_room_by_id_helper_local(
.supported_room_version(&room_version_id)
{
return Err!(BadServerResponse(
"Remote room version {room_version_id} is not supported by conduwuit"
"Remote room version {room_version_id} is not supported by tuwunel"
));
}
@@ -975,11 +975,11 @@ async fn make_join_request(
if incompatible_room_version_count > 15 {
info!(
"15 servers have responded with M_INCOMPATIBLE_ROOM_VERSION or \
M_UNSUPPORTED_ROOM_VERSION, assuming that conduwuit does not support the \
M_UNSUPPORTED_ROOM_VERSION, assuming that tuwunel does not support the \
room version {room_id}: {e}"
);
make_join_response_and_server =
Err!(BadServerResponse("Room version is not supported by Conduwuit"));
Err!(BadServerResponse("Room version is not supported by tuwunel"));
return make_join_response_and_server;
}

View File

@@ -228,7 +228,7 @@ async fn allowed_to_send_state_event(
return Err!(Request(BadJson(debug_warn!(
?room_id,
"Sending an ACL event with an empty allow key will permanently \
brick the room for non-conduwuit's as this equates to no servers \
brick the room for non-tuwunel's as this equates to no servers \
being allowed to participate in this room."
))));
}
@@ -237,8 +237,8 @@ async fn allowed_to_send_state_event(
return Err!(Request(BadJson(debug_warn!(
?room_id,
"Sending an ACL event with a deny and allow key value of \"*\" will \
permanently brick the room for non-conduwuit's as this equates to \
no servers being allowed to participate in this room."
permanently brick the room for non-tuwunel's as this equates to no \
servers being allowed to participate in this room."
))));
}

View File

@@ -11,7 +11,7 @@ use tuwunel_core::{
use crate::Ruma;
// conduwuit can handle a lot more results than synapse
// Tuwunel can handle a lot more results than synapse
const LIMIT_MAX: usize = 500;
const LIMIT_DEFAULT: usize = 10;