feat(ap): broadcast Update(Actor) when user updates their profile

This commit is contained in:
2026-05-15 05:32:25 +02:00
parent d360e506db
commit ca1ebc4b68
7 changed files with 45 additions and 1 deletions

View File

@@ -60,6 +60,9 @@ pub enum DomainEvent {
UserRegistered {
user_id: UserId,
},
ProfileUpdated {
user_id: UserId,
},
FetchRemoteActorPosts {
actor_ap_url: String,
outbox_url: String,

View File

@@ -471,4 +471,7 @@ pub trait OutboundFederationPort: Send + Sync {
object_ap_id: &str,
author_inbox_url: &str,
) -> Result<(), DomainError>;
/// Fan out an Update(Actor) to all accepted followers after a profile change.
async fn broadcast_actor_update(&self, user_id: &UserId) -> Result<(), DomainError>;
}