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:
Claude committed 2026-10-09 15:35:10 +00:00
commit aae386de01
42 files changed
+3535 -35

No files matched your search

+2 -1
View File
@@ -122,6 +122,7 @@ export function normalizeItem(raw: unknown): MediaItem | null {
genres: safeStringList(r.genres, LIMITS.genres),
platform: cleanText(r.platform, LIMITS.shortText),
notes: cleanText(r.notes, LIMITS.notes),
notesSpoiler: (r.notesSpoiler === true && !!cleanText(r.notes, LIMITS.notes)) || undefined,
poster: safePosterUrl(r.poster),
backdrop: remoteImage(r.backdrop),
overview: cleanText(r.overview, LIMITS.overview),
@@ -151,7 +152,7 @@ export function normalizeSettings(raw: unknown): Partial<Settings> | undefined {
if (raw.themeMode === 'auto' || raw.themeMode === 'light' || raw.themeMode === 'dark' || raw.themeMode === 'night' || raw.themeMode === 'starfield') out.themeMode = raw.themeMode
if (isPlainObject(raw.notifPrefs)) {
const np: NotifPrefs = {}
for (const k of ['episodes', 'follows', 'accepted', 'reactions'] as const) if (typeof raw.notifPrefs[k] === 'boolean') np[k] = raw.notifPrefs[k] as boolean
for (const k of ['episodes', 'follows', 'accepted', 'reactions', 'comments', 'lists'] as const) if (typeof raw.notifPrefs[k] === 'boolean') np[k] = raw.notifPrefs[k] as boolean
out.notifPrefs = np
}
const challenges = normalizeChallenges(raw.challenges)