fix(ap): visibility-aware addressing — correct to/cc outbound, parse inbound to/cc
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m25s
test / unit (pull_request) Successful in 16m39s
test / integration (pull_request) Failing after 17m35s

This commit is contained in:
2026-05-14 19:34:43 +02:00
parent a5ea97bbaa
commit 8602614e7c
5 changed files with 45 additions and 3 deletions

View File

@@ -288,6 +288,7 @@ pub trait ActivityPubRepository: Send + Sync {
// ── Inbox processing (remote → local) ───────────────────────────
/// Persist an incoming remote Note. Idempotent on ap_id.
#[allow(clippy::too_many_arguments)]
async fn accept_note(
&self,
ap_id: &url::Url,
@@ -296,6 +297,7 @@ pub trait ActivityPubRepository: Send + Sync {
published: chrono::DateTime<chrono::Utc>,
sensitive: bool,
content_warning: Option<String>,
visibility: &str,
) -> Result<(), DomainError>;
/// Apply an Update to a previously accepted remote Note.

View File

@@ -698,6 +698,7 @@ impl ActivityPubRepository for TestStore {
_published: chrono::DateTime<chrono::Utc>,
_sensitive: bool,
_content_warning: Option<String>,
_visibility: &str,
) -> Result<(), DomainError> {
Ok(())
}