feat(domain): FederationActionPort trait + avatar_url on RemoteActor

This commit is contained in:
2026-05-14 19:55:10 +02:00
parent 8eb59bfac6
commit 82f8772104
6 changed files with 54 additions and 1 deletions

View File

@@ -194,6 +194,12 @@ pub trait RemoteActorRepository: Send + Sync {
async fn find_by_url(&self, url: &str) -> Result<Option<RemoteActor>, DomainError>;
}
#[async_trait]
pub trait FederationActionPort: Send + Sync {
async fn lookup_actor(&self, handle: &str) -> Result<RemoteActor, DomainError>;
async fn follow_remote(&self, local_user_id: &UserId, handle: &str) -> Result<(), DomainError>;
}
#[async_trait]
pub trait FeedRepository: Send + Sync {
async fn home_feed(