Fix issue with GetPost not returning bot cross_posts.

- Fixes #4803
This commit is contained in:
Dessalines 2024-06-13 13:19:12 -04:00
parent 046375171e
commit 6d7b70b589

View file

@ -88,6 +88,7 @@ pub async fn get_post(
let cross_posts = if let Some(url) = &post_view.post.url { let cross_posts = if let Some(url) = &post_view.post.url {
let mut x_posts = PostQuery { let mut x_posts = PostQuery {
url_search: Some(url.inner().as_str().into()), url_search: Some(url.inner().as_str().into()),
local_user: local_user_view.as_ref(),
..Default::default() ..Default::default()
} }
.list(&local_site.site, &mut context.pool()) .list(&local_site.site, &mut context.pool())