refactor: Feed uses SocialIdentity matching, deps From impl, remove get_accepted_following_urls
Feed builds FollowingFilter by matching SocialIdentity::Local/Remote instead of URL-prefix heuristic. Removed get_accepted_following_urls from SocialQuery (no longer needed). Added From<&AppState> for deps structs — 20 construction sites collapsed to one-liners.
This commit is contained in:
@@ -243,15 +243,4 @@ impl SocialQuery for CompositeSocialAdapter {
|
||||
Ok(following.iter().any(|a| a.identity == *target))
|
||||
}
|
||||
|
||||
async fn get_accepted_following_urls(
|
||||
&self,
|
||||
user_id: &UserId,
|
||||
) -> Result<Vec<String>, DomainError> {
|
||||
let actors = self
|
||||
.ap_service
|
||||
.get_following(user_id.value())
|
||||
.await
|
||||
.map_err(ap_err)?;
|
||||
Ok(actors.into_iter().map(|a| a.url).collect())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user