From 6d7b70b58944822e35d6fc855ddef5d6a238c5f3 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 13 Jun 2024 13:19:12 -0400 Subject: [PATCH] Fix issue with GetPost not returning bot cross_posts. - Fixes #4803 --- crates/api_crud/src/post/read.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/api_crud/src/post/read.rs b/crates/api_crud/src/post/read.rs index 506b97299..54029c0cf 100644 --- a/crates/api_crud/src/post/read.rs +++ b/crates/api_crud/src/post/read.rs @@ -88,6 +88,7 @@ pub async fn get_post( let cross_posts = if let Some(url) = &post_view.post.url { let mut x_posts = PostQuery { url_search: Some(url.inner().as_str().into()), + local_user: local_user_view.as_ref(), ..Default::default() } .list(&local_site.site, &mut context.pool())