feat: Mark remote servers as "interested" when returning media

This commit is contained in:
timedout 2026-01-25 03:58:07 +00:00
parent 3825bff733
commit 655eacfa7b
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F

View file

@ -46,6 +46,7 @@ pub(crate) async fn get_content_route(
content_type: content_type.map(Into::into),
content_disposition: Some(content_disposition),
};
services.media.mark_server_interested(&mxc, body.origin());
Ok(get_content::v1::Response {
content: FileOrLocation::File(content),
@ -89,6 +90,7 @@ pub(crate) async fn get_content_thumbnail_route(
content_type: content_type.map(Into::into),
content_disposition: Some(content_disposition),
};
services.media.mark_server_interested(&mxc, body.origin());
Ok(get_content_thumbnail::v1::Response {
content: FileOrLocation::File(content),