refactor: remove watchlist repository references and add get_remote_watchlist use case

This commit is contained in:
2026-05-13 00:34:23 +02:00
parent 53df90ab1f
commit 31fbb79451
7 changed files with 25 additions and 19 deletions

View File

@@ -0,0 +1,7 @@
use domain::{errors::DomainError, models::RemoteWatchlistEntry};
use crate::context::AppContext;
pub async fn execute(ctx: &AppContext, uuid: uuid::Uuid) -> Result<Vec<RemoteWatchlistEntry>, DomainError> {
ctx.remote_watchlist_repository.get_by_derived_uuid(uuid).await
}

View File

@@ -28,3 +28,5 @@ pub mod add_to_watchlist;
pub mod remove_from_watchlist;
pub mod get_watchlist;
pub mod is_on_watchlist;
#[cfg(feature = "federation")]
pub mod get_remote_watchlist;