Convert uses of Box<ServerName> to a ref

This commit is contained in:
Devin Ragotzy 2021-01-14 14:39:56 -05:00
parent d108a735a4
commit 52392628e9
7 changed files with 92 additions and 43 deletions

View file

@ -77,7 +77,7 @@ pub async fn get_content_route(
.sending
.send_federation_request(
&db.globals,
body.server_name.clone(),
&body.server_name,
get_content::Request {
allow_remote: false,
server_name: &body.server_name,
@ -126,7 +126,7 @@ pub async fn get_content_thumbnail_route(
.sending
.send_federation_request(
&db.globals,
body.server_name.clone(),
&body.server_name,
get_content_thumbnail::Request {
allow_remote: false,
height: body.height,