feat: send messages over federation

This commit is contained in:
Timo Kösters 2020-09-14 20:23:19 +02:00
parent 9f05ef926a
commit f7816b11de
No known key found for this signature in database
GPG key ID: 356E705610F626D5
15 changed files with 324 additions and 218 deletions

View file

@ -79,7 +79,7 @@ pub async fn get_content_route(
.into())
} else if body.allow_remote {
let get_content_response = server_server::send_request(
&db,
&db.globals,
body.server_name.as_ref(),
get_content::Request {
allow_remote: false,
@ -129,7 +129,7 @@ pub async fn get_content_thumbnail_route(
Ok(get_content_thumbnail::Response { file, content_type }.into())
} else if body.allow_remote {
let get_thumbnail_response = server_server::send_request(
&db,
&db.globals,
body.server_name.as_ref(),
get_content_thumbnail::Request {
allow_remote: false,