structural refactor and codebase improvements

This commit is contained in:
2026-08-09 14:58:14 +02:00
parent 22b1dd3f56
commit c9715baab8
247 changed files with 11515 additions and 3063 deletions

View File

@@ -0,0 +1,17 @@
use domain::{
errors::DomainError,
value_objects::{FollowRelation, SocialIdentity, UserId},
};
use uuid::Uuid;
use super::deps::SocialQueryDeps;
pub async fn execute(
deps: &SocialQueryDeps,
viewer_id: Uuid,
target: SocialIdentity,
) -> Result<FollowRelation, DomainError> {
deps.follow_graph
.get_relation(&UserId::from_uuid(viewer_id), &target)
.await
}