fix: profile shows only own reviews, federation display name in community
- diary API accepts user_id filter, profile page passes it - movie social feed joins ap_remote_actors for handle resolution - COALESCE prefers actor handle for remote reviews, email for local
This commit is contained in:
@@ -265,7 +265,7 @@ pub fn to_diary_query(p: DiaryQueryParams) -> GetDiaryQuery {
|
||||
_ => SortDirection::Descending,
|
||||
}),
|
||||
movie_id: p.movie_id,
|
||||
user_id: None,
|
||||
user_id: p.user_id,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -84,6 +84,7 @@ fn sort_by_asc_string_becomes_ascending() {
|
||||
limit: None,
|
||||
offset: None,
|
||||
movie_id: None,
|
||||
user_id: None,
|
||||
};
|
||||
let query = to_diary_query(params);
|
||||
assert!(matches!(
|
||||
@@ -99,6 +100,7 @@ fn sort_by_other_string_becomes_descending() {
|
||||
limit: None,
|
||||
offset: None,
|
||||
movie_id: None,
|
||||
user_id: None,
|
||||
};
|
||||
let query = to_diary_query(params);
|
||||
assert!(matches!(
|
||||
|
||||
Reference in New Issue
Block a user