fix: broadcast AP Update after poster sync to fix missing posters on remote instances
Some checks failed
CI / Check / Test (push) Has been cancelled

New movies had no poster at AP broadcast time (race between poster sync
and ReviewLogged handler). PosterSynced event now fires after sync
completes, triggering Update notes so remote apps get the poster URL.
This commit is contained in:
2026-06-04 23:12:27 +02:00
parent 6a10ba15c1
commit 886f26c7dc
9 changed files with 124 additions and 2 deletions

View File

@@ -85,6 +85,9 @@ pub enum DomainEvent {
wrapup_id: WrapUpId,
},
SearchReindexRequested,
PosterSynced {
movie_id: MovieId,
},
}
#[async_trait]

View File

@@ -431,6 +431,11 @@ pub trait LocalApContentQuery: Send + Sync {
async fn count_local_posts(&self) -> Result<u64, DomainError>;
async fn get_local_reviews_for_movie(
&self,
movie_id: &MovieId,
) -> Result<Vec<DiaryEntry>, DomainError>;
async fn get_local_reviews_page(
&self,
user_id: &UserId,