diff --git a/src/services/torrent.rs b/src/services/torrent.rs index c56dc9a3..5d12e119 100644 --- a/src/services/torrent.rs +++ b/src/services/torrent.rs @@ -99,6 +99,8 @@ impl Index { /// * Unable to insert the torrent into the database. /// * Unable to add the torrent to the whitelist. pub async fn add_torrent(&self, mut torrent_request: AddTorrentRequest, user_id: UserId) -> Result { + let _user = self.user_repository.get_compact(&user_id).await?; + torrent_request.torrent.set_announce_urls(&self.configuration).await; let category = self