Fusion social (spoilers, commentaires, listes partagées) + raccordement à la modération
- Signalement des commentaires et des listes partagées : copie du contenu, aperçu admin et suppression branchés dans report_content / admin_reports / admin_report_action. - Un compte bloqué ne peut plus commenter mes avis (déclencheur), et ses commentaires sont masqués côté client. - La migration défis retire à la fois tags et episodeLog des fiches publiques. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
42 files changed
+3535
-35
No files matched your search
@@ -1230,3 +1230,10 @@ export async function tmdbFindExternal(id: string, source: 'tvdb_id' | 'imdb_id'
|
||||
}
|
||||
|
||||
export { ANILIST, ANILIST_FIELDS, aniToResult, type AniMedia }
|
||||
/** Adresse de l'affiche TMDB d'un titre (listes partagées : la copie locale de l'affiche ne se partage pas). */
|
||||
export async function getTmdbPosterUrl(externalId: string, key: string): Promise<string | undefined> {
|
||||
if (!isSafeExternalId(externalId) || !externalId.startsWith('tmdb:')) return undefined
|
||||
const [, kind, id] = externalId.split(':') as ['tmdb', 'movie' | 'tv', string]
|
||||
const d = await tmdbFetch<{ poster_path?: string | null }>(`/${kind}/${id}`, key)
|
||||
return isSafeTmdbPath(d.poster_path) ? `${TMDB_IMG}/w342${d.poster_path}` : undefined
|
||||
}
|
||||
Reference in new issue
Block a user