feat(domain): add mark_follower_accepted/rejected thin port methods

This commit is contained in:
2026-05-28 02:22:52 +02:00
parent 2060317867
commit 04f39e35c2
2 changed files with 30 additions and 0 deletions

View File

@@ -322,6 +322,20 @@ pub trait FederationFollowRequestPort: Send + Sync {
user_id: &UserId, user_id: &UserId,
actor_url: &str, actor_url: &str,
) -> Result<(), DomainError>; ) -> Result<(), DomainError>;
/// Update follower status to Accepted in DB only — no federation activity sent.
async fn mark_follower_accepted(
&self,
user_id: &UserId,
actor_url: &str,
) -> Result<(), DomainError>;
/// Remove follower from DB only — no federation activity sent.
async fn mark_follower_rejected(
&self,
user_id: &UserId,
actor_url: &str,
) -> Result<(), DomainError>;
} }
#[async_trait] #[async_trait]

View File

@@ -763,6 +763,22 @@ impl FederationFollowRequestPort for TestStore {
) -> Result<(), DomainError> { ) -> Result<(), DomainError> {
Ok(()) Ok(())
} }
async fn mark_follower_accepted(
&self,
_user_id: &UserId,
_actor_url: &str,
) -> Result<(), DomainError> {
Ok(())
}
async fn mark_follower_rejected(
&self,
_user_id: &UserId,
_actor_url: &str,
) -> Result<(), DomainError> {
Ok(())
}
} }
#[async_trait] #[async_trait]