diff --git a/crates/apub/src/protocol/objects/page.rs b/crates/apub/src/protocol/objects/page.rs index acfd8f5fd..4141791aa 100644 --- a/crates/apub/src/protocol/objects/page.rs +++ b/crates/apub/src/protocol/objects/page.rs @@ -243,7 +243,11 @@ impl InCommunity for Page { break c; } } else { - Err(LemmyErrorType::NoCommunityFoundInCc)? + let audience = self + .audience + .clone() + .ok_or(LemmyErrorType::NoCommunityFoundInCc)?; + break audience.dereference(context).await?; } } } @@ -256,6 +260,8 @@ impl InCommunity for Page { .await? } }; + + // TODO: doesnt make sense to do this here as were checking audience against itself if let Some(audience) = &self.audience { verify_community_matches(audience, community.actor_id.clone())?; }