Merge branch 'worktree-agent-ac9eaf6c2d9810cbb' into claude/relaxed-maxwell-c10wof

# Conflicts:
#	src/i18n/locales/ar.ts
#	src/i18n/locales/de.ts
#	src/i18n/locales/en.ts
#	src/i18n/locales/es.ts
#	src/i18n/locales/fr.ts
#	src/i18n/locales/hi.ts
#	src/i18n/locales/id.ts
#	src/i18n/locales/it.ts
#	src/i18n/locales/ja.ts
#	src/i18n/locales/ko.ts
#	src/i18n/locales/nl.ts
#	src/i18n/locales/pl.ts
#	src/i18n/locales/pt.ts
#	src/i18n/locales/ru.ts
#	src/i18n/locales/th.ts
#	src/i18n/locales/tr.ts
#	src/i18n/locales/vi.ts
#	src/i18n/locales/zh.ts
This commit is contained in:
Claude committed 2026-10-09 15:17:14 +00:00
commit 0dab749134
35 files changed
+1795 -22

No files matched your search

@@ -0,0 +1,24 @@
-- ─────────────────────────────────────────────────────────────────────────────
-- Tags personnels (« comfort », « à revoir avec Léa »…) : PRIVÉS.
--
-- Les tags vivent dans la fiche (colonne JSON `items.data`, champ `tags`) et suivent donc
-- la synchronisation existante sans nouvelle colonne. Ils ne doivent jamais apparaître
-- chez les autres : la fonction qui prépare une fiche pour un profil / le fil d'abonnements
-- les retire, comme les listes perso.
--
-- Idempotent : peut être relancé sans risque (create or replace + revoke).
-- ─────────────────────────────────────────────────────────────────────────────
create or replace function public.public_item(d jsonb)
returns jsonb
language sql
immutable
set search_path = ''
as $$
select case when length(coalesce(x->>'poster', '')) > 150000 then x - 'poster' else x end
-- Les avis sont publics (comme sur Letterboxd) ; les listes perso et les tags perso restent privés
from (select d - 'listIds' - 'notesPublic' - 'tags' as x) s
$$;
-- Outil interne des fonctions de profil : jamais appelable directement depuis l'API
revoke all on function public.public_item(jsonb) from public, anon, authenticated;