feat(domain): add broadcast_like/broadcast_undo_like to OutboundFederationPort

This commit is contained in:
2026-05-15 04:47:19 +02:00
parent 9af1d33e71
commit 6d365dd3cf
3 changed files with 59 additions and 0 deletions

View File

@@ -453,4 +453,21 @@ pub trait OutboundFederationPort: Send + Sync {
booster_user_id: &UserId,
object_ap_id: &str,
) -> Result<(), DomainError>;
/// Send a Like activity to a remote thought author's inbox.
/// Only called when a LOCAL user likes a REMOTE thought (one with an ap_id).
async fn broadcast_like(
&self,
liker_user_id: &UserId,
object_ap_id: &str,
author_inbox_url: &str,
) -> Result<(), DomainError>;
/// Send Undo(Like) to a remote thought author's inbox.
async fn broadcast_undo_like(
&self,
liker_user_id: &UserId,
object_ap_id: &str,
author_inbox_url: &str,
) -> Result<(), DomainError>;
}