mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
clippy
This commit is contained in:
parent
dc7b391313
commit
ec52ac1bd6
@ -92,7 +92,7 @@ async fn format_actor_url(
|
||||
let local_protocol_and_hostname = context.settings().get_protocol_and_hostname();
|
||||
let local_hostname = &context.settings().hostname;
|
||||
let instance = Instance::read(&mut context.pool(), instance_id).await?;
|
||||
let url = if dbg!(&instance.domain) != dbg!(local_hostname) {
|
||||
let url = if &instance.domain != local_hostname {
|
||||
format!(
|
||||
"{local_protocol_and_hostname}/{kind}/{name}@{}",
|
||||
instance.domain
|
||||
@ -130,13 +130,12 @@ mod tests {
|
||||
),
|
||||
)
|
||||
.await?;
|
||||
dbg!(&community.actor_id);
|
||||
let user = create_user("john".to_string(), None, &context).await?;
|
||||
let post_form = PostInsertForm {
|
||||
..PostInsertForm::new("My post".to_string(), user.person.id, community.id)
|
||||
};
|
||||
let post = Post::create(&mut context.pool(), &post_form).await?;
|
||||
dbg!(&post.ap_id);
|
||||
|
||||
let tests: Vec<_> = vec![
|
||||
(
|
||||
"rewrite remote link",
|
||||
|
Loading…
Reference in New Issue
Block a user