Notifications d'abonnement (et rien d'autre)

- Cloche sur l'accueil (avec le nombre non lu) : qui s'abonne, demande à s'abonner,
  se désabonne, ou accepte ma demande ; accepter/refuser une demande directement depuis la liste
- Serveur (migration 20261127120000, déjà appliquée) : déclencheur sur follows, une ligne par
  personne et par sens, 200 max par compte ; rien entre comptes bloqués ou suspendus ;
  retirer un abonné, bloquer ou supprimer un compte ne notifie pas
- Fonctions get_notifications / unread_notifications / mark_notifications_read (comptes connectés seulement)
- Textes dans les 18 langues

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-11-27 16:09:55 +00:00
1 parent 62e04bd67a
commit c66f0f62a6
23 files changed
+444 -3

No files matched your search

+9
View File
@@ -787,6 +787,15 @@ const dict: Translations = {
'social.requestsTab_many': 'الطلبات ({count})',
'social.noFollowing': 'لا تتابع أحدًا بعد.',
'social.noFollowers': 'لا متابعين بعد.',
'notif.title': 'الإشعارات',
'notif.empty': 'عندما يتابعك أحد أو يلغي متابعتك، ستراه هنا.',
'notif.error': 'تعذّر تحميل الإشعارات.',
'notif.newFollower': '{name} يتابعك',
'notif.followRequest': '{name} يطلب متابعتك',
'notif.unfollow': '{name} ألغى متابعتك',
'notif.followAccepted': '{name} قبل طلبك',
'notif.unread_one': '{count} إشعار جديد',
'notif.unread_other': '{count} إشعارات جديدة',
'social.accept': 'قبول',
'social.decline': 'رفض',
'social.removeFollower': 'إزالة',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'Anfragen ({count})',
'social.noFollowing': 'Du folgst noch niemandem.',
'social.noFollowers': 'Noch keine Follower.',
'notif.title': 'Benachrichtigungen',
'notif.empty': 'Wenn dir jemand folgt oder entfolgt, siehst du es hier.',
'notif.error': 'Benachrichtigungen konnten nicht geladen werden.',
'notif.newFollower': '{name} folgt dir',
'notif.followRequest': '{name} möchte dir folgen',
'notif.unfollow': '{name} folgt dir nicht mehr',
'notif.followAccepted': '{name} hat deine Anfrage angenommen',
'notif.unread_one': '{count} neue Benachrichtigung',
'notif.unread_other': '{count} neue Benachrichtigungen',
'social.accept': 'Annehmen',
'social.decline': 'Ablehnen',
'social.removeFollower': 'Entfernen',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'Requests ({count})',
'social.noFollowing': 'Not following anyone yet.',
'social.noFollowers': 'No followers yet.',
'notif.title': 'Notifications',
'notif.empty': 'When someone follows or unfollows you, you\'ll see it here.',
'notif.error': 'Couldn\'t load notifications.',
'notif.newFollower': '{name} followed you',
'notif.followRequest': '{name} asked to follow you',
'notif.unfollow': '{name} unfollowed you',
'notif.followAccepted': '{name} accepted your request',
'notif.unread_one': '{count} new notification',
'notif.unread_other': '{count} new notifications',
'social.accept': 'Accept',
'social.decline': 'Decline',
'social.removeFollower': 'Remove',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'Solicitudes ({count})',
'social.noFollowing': 'Todavía no sigues a nadie.',
'social.noFollowers': 'Todavía no tienes seguidores.',
'notif.title': 'Notificaciones',
'notif.empty': 'Cuando alguien te siga o deje de seguirte, lo verás aquí.',
'notif.error': 'No se pudieron cargar las notificaciones.',
'notif.newFollower': '{name} te sigue',
'notif.followRequest': '{name} quiere seguirte',
'notif.unfollow': '{name} ya no te sigue',
'notif.followAccepted': '{name} aceptó tu solicitud',
'notif.unread_one': '{count} notificación nueva',
'notif.unread_other': '{count} notificaciones nuevas',
'social.accept': 'Aceptar',
'social.decline': 'Rechazar',
'social.removeFollower': 'Eliminar',
+9
View File
@@ -690,6 +690,15 @@ const dict = {
'social.requestsTab_other': 'Demandes ({count})',
'social.noFollowing': 'Aucun abonnement pour l\'instant.',
'social.noFollowers': 'Aucun abonné pour l\'instant.',
'notif.title': 'Notifications',
'notif.empty': 'Quand quelqu\'un s\'abonne ou se désabonne, tu le verras ici.',
'notif.error': 'Impossible de charger les notifications.',
'notif.newFollower': '{name} te suit',
'notif.followRequest': '{name} demande à te suivre',
'notif.unfollow': '{name} ne te suit plus',
'notif.followAccepted': '{name} a accepté ta demande',
'notif.unread_one': '{count} nouvelle notification',
'notif.unread_other': '{count} nouvelles notifications',
'social.accept': 'Accepter',
'social.decline': 'Refuser',
'social.removeFollower': 'Retirer',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'रिक्वेस्ट ({count})',
'social.noFollowing': 'अभी आप किसी को फ़ॉलो नहीं कर रहे।',
'social.noFollowers': 'अभी कोई फ़ॉलोअर नहीं।',
'notif.title': 'सूचनाएँ',
'notif.empty': 'जब कोई आपको फ़ॉलो या अनफ़ॉलो करेगा, आप उसे यहाँ देखेंगे।',
'notif.error': 'सूचनाएँ लोड नहीं हो सकीं।',
'notif.newFollower': '{name} आपको फ़ॉलो करते हैं',
'notif.followRequest': '{name} आपको फ़ॉलो करना चाहते हैं',
'notif.unfollow': '{name} ने आपको अनफ़ॉलो किया',
'notif.followAccepted': '{name} ने आपका अनुरोध स्वीकार किया',
'notif.unread_one': '{count} नई सूचना',
'notif.unread_other': '{count} नई सूचनाएँ',
'social.accept': 'स्वीकार करें',
'social.decline': 'अस्वीकार करें',
'social.removeFollower': 'हटाएँ',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'Permintaan ({count})',
'social.noFollowing': 'Belum mengikuti siapa pun.',
'social.noFollowers': 'Belum ada pengikut.',
'notif.title': 'Notifikasi',
'notif.empty': 'Saat seseorang mengikuti atau berhenti mengikutimu, kamu akan melihatnya di sini.',
'notif.error': 'Notifikasi tidak dapat dimuat.',
'notif.newFollower': '{name} mengikutimu',
'notif.followRequest': '{name} ingin mengikutimu',
'notif.unfollow': '{name} berhenti mengikutimu',
'notif.followAccepted': '{name} menerima permintaanmu',
'notif.unread_one': '{count} notifikasi baru',
'notif.unread_other': '{count} notifikasi baru',
'social.accept': 'Terima',
'social.decline': 'Tolak',
'social.removeFollower': 'Hapus',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'Richieste ({count})',
'social.noFollowing': 'Non segui ancora nessuno.',
'social.noFollowers': 'Ancora nessun follower.',
'notif.title': 'Notifiche',
'notif.empty': 'Quando qualcuno inizia o smette di seguirti, lo vedrai qui.',
'notif.error': 'Impossibile caricare le notifiche.',
'notif.newFollower': '{name} ti segue',
'notif.followRequest': '{name} chiede di seguirti',
'notif.unfollow': '{name} non ti segue più',
'notif.followAccepted': '{name} ha accettato la tua richiesta',
'notif.unread_one': '{count} nuova notifica',
'notif.unread_other': '{count} nuove notifiche',
'social.accept': 'Accetta',
'social.decline': 'Rifiuta',
'social.removeFollower': 'Rimuovi',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'リクエスト({count})',
'social.noFollowing': 'まだ誰もフォローしていません。',
'social.noFollowers': 'まだフォロワーはいません。',
'notif.title': '通知',
'notif.empty': '誰かにフォローまたはフォロー解除されると、ここに表示されます。',
'notif.error': '通知を読み込めませんでした。',
'notif.newFollower': '{name}さんがあなたをフォローしました',
'notif.followRequest': '{name}さんがフォローをリクエストしました',
'notif.unfollow': '{name}さんがフォローを解除しました',
'notif.followAccepted': '{name}さんがリクエストを承認しました',
'notif.unread_one': '新しい通知 {count} 件',
'notif.unread_other': '新しい通知 {count} 件',
'social.accept': '承認',
'social.decline': '拒否',
'social.removeFollower': '削除',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': '요청 ({count})',
'social.noFollowing': '아직 팔로우한 사람이 없어요.',
'social.noFollowers': '아직 팔로워가 없어요.',
'notif.title': '알림',
'notif.empty': '누군가 나를 팔로우하거나 언팔로우하면 여기에 표시돼요.',
'notif.error': '알림을 불러오지 못했어요.',
'notif.newFollower': '{name}님이 나를 팔로우해요',
'notif.followRequest': '{name}님이 팔로우를 요청했어요',
'notif.unfollow': '{name}님이 언팔로우했어요',
'notif.followAccepted': '{name}님이 요청을 수락했어요',
'notif.unread_one': '새 알림 {count}개',
'notif.unread_other': '새 알림 {count}개',
'social.accept': '수락',
'social.decline': '거절',
'social.removeFollower': '삭제',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'Verzoeken ({count})',
'social.noFollowing': 'Je volgt nog niemand.',
'social.noFollowers': 'Nog geen volgers.',
'notif.title': 'Meldingen',
'notif.empty': 'Als iemand je volgt of ontvolgt, zie je het hier.',
'notif.error': 'Meldingen konden niet worden geladen.',
'notif.newFollower': '{name} volgt je',
'notif.followRequest': '{name} wil je volgen',
'notif.unfollow': '{name} volgt je niet meer',
'notif.followAccepted': '{name} heeft je verzoek geaccepteerd',
'notif.unread_one': '{count} nieuwe melding',
'notif.unread_other': '{count} nieuwe meldingen',
'social.accept': 'Accepteren',
'social.decline': 'Weigeren',
'social.removeFollower': 'Verwijderen',
+9
View File
@@ -754,6 +754,15 @@ const dict: Translations = {
'social.requestsTab_other': 'Prośby ({count})',
'social.noFollowing': 'Na razie nikogo nie obserwujesz.',
'social.noFollowers': 'Na razie brak obserwujących.',
'notif.title': 'Powiadomienia',
'notif.empty': 'Gdy ktoś zacznie lub przestanie cię obserwować, zobaczysz to tutaj.',
'notif.error': 'Nie udało się wczytać powiadomień.',
'notif.newFollower': '{name} obserwuje cię',
'notif.followRequest': '{name} prosi o możliwość obserwowania',
'notif.unfollow': '{name} już cię nie obserwuje',
'notif.followAccepted': '{name} zaakceptował(a) twoją prośbę',
'notif.unread_one': '{count} nowe powiadomienie',
'notif.unread_other': '{count} nowych powiadomień',
'social.accept': 'Akceptuj',
'social.decline': 'Odrzuć',
'social.removeFollower': 'Usuń',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'Solicitações ({count})',
'social.noFollowing': 'Você ainda não segue ninguém.',
'social.noFollowers': 'Nenhum seguidor por enquanto.',
'notif.title': 'Notificações',
'notif.empty': 'Quando alguém te seguir ou deixar de seguir, verás aqui.',
'notif.error': 'Não foi possível carregar as notificações.',
'notif.newFollower': '{name} segue-te',
'notif.followRequest': '{name} pediu para te seguir',
'notif.unfollow': '{name} deixou de te seguir',
'notif.followAccepted': '{name} aceitou o teu pedido',
'notif.unread_one': '{count} nova notificação',
'notif.unread_other': '{count} novas notificações',
'social.accept': 'Aceitar',
'social.decline': 'Recusar',
'social.removeFollower': 'Remover',
+9
View File
@@ -754,6 +754,15 @@ const dict: Translations = {
'social.requestsTab_other': 'Запросы ({count})',
'social.noFollowing': 'Ты пока ни на кого не подписан.',
'social.noFollowers': 'Подписчиков пока нет.',
'notif.title': 'Уведомления',
'notif.empty': 'Когда кто-то подпишется или отпишется, ты увидишь это здесь.',
'notif.error': 'Не удалось загрузить уведомления.',
'notif.newFollower': '{name} подписался(-ась) на тебя',
'notif.followRequest': '{name} хочет подписаться на тебя',
'notif.unfollow': '{name} отписался(-ась) от тебя',
'notif.followAccepted': '{name} принял(а) твой запрос',
'notif.unread_one': '{count} новое уведомление',
'notif.unread_other': 'Новых уведомлений: {count}',
'social.accept': 'Принять',
'social.decline': 'Отклонить',
'social.removeFollower': 'Удалить',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'คำขอ ({count})',
'social.noFollowing': 'ยังไม่ได้ติดตามใคร',
'social.noFollowers': 'ยังไม่มีผู้ติดตาม',
'notif.title': 'การแจ้งเตือน',
'notif.empty': 'เมื่อมีคนติดตามหรือเลิกติดตามคุณ คุณจะเห็นที่นี่',
'notif.error': 'โหลดการแจ้งเตือนไม่ได้',
'notif.newFollower': '{name} ติดตามคุณ',
'notif.followRequest': '{name} ขอติดตามคุณ',
'notif.unfollow': '{name} เลิกติดตามคุณ',
'notif.followAccepted': '{name} ยอมรับคำขอของคุณ',
'notif.unread_one': 'การแจ้งเตือนใหม่ {count} รายการ',
'notif.unread_other': 'การแจ้งเตือนใหม่ {count} รายการ',
'social.accept': 'ยอมรับ',
'social.decline': 'ปฏิเสธ',
'social.removeFollower': 'นำออก',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'İstekler ({count})',
'social.noFollowing': 'Henüz kimseyi takip etmiyorsun.',
'social.noFollowers': 'Henüz takipçi yok.',
'notif.title': 'Bildirimler',
'notif.empty': 'Biri seni takip ettiğinde veya takibi bıraktığında burada göreceksin.',
'notif.error': 'Bildirimler yüklenemedi.',
'notif.newFollower': '{name} seni takip ediyor',
'notif.followRequest': '{name} seni takip etmek istiyor',
'notif.unfollow': '{name} seni takip etmeyi bıraktı',
'notif.followAccepted': '{name} isteğini kabul etti',
'notif.unread_one': '{count} yeni bildirim',
'notif.unread_other': '{count} yeni bildirim',
'social.accept': 'Kabul et',
'social.decline': 'Reddet',
'social.removeFollower': 'Çıkar',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': 'Yêu cầu ({count})',
'social.noFollowing': 'Bạn chưa theo dõi ai.',
'social.noFollowers': 'Chưa có người theo dõi.',
'notif.title': 'Thông báo',
'notif.empty': 'Khi ai đó theo dõi hoặc bỏ theo dõi bạn, bạn sẽ thấy ở đây.',
'notif.error': 'Không tải được thông báo.',
'notif.newFollower': '{name} đã theo dõi bạn',
'notif.followRequest': '{name} muốn theo dõi bạn',
'notif.unfollow': '{name} đã bỏ theo dõi bạn',
'notif.followAccepted': '{name} đã chấp nhận yêu cầu của bạn',
'notif.unread_one': '{count} thông báo mới',
'notif.unread_other': '{count} thông báo mới',
'social.accept': 'Chấp nhận',
'social.decline': 'Từ chối',
'social.removeFollower': 'Gỡ',
+9
View File
@@ -688,6 +688,15 @@ const dict: Translations = {
'social.requestsTab_other': '申请({count})',
'social.noFollowing': '还没有关注任何人。',
'social.noFollowers': '还没有粉丝。',
'notif.title': '通知',
'notif.empty': '有人关注或取消关注你时,会显示在这里。',
'notif.error': '无法加载通知。',
'notif.newFollower': '{name} 关注了你',
'notif.followRequest': '{name} 请求关注你',
'notif.unfollow': '{name} 取消关注了你',
'notif.followAccepted': '{name} 接受了你的请求',
'notif.unread_one': '{count} 条新通知',
'notif.unread_other': '{count} 条新通知',
'social.accept': '同意',
'social.decline': '拒绝',
'social.removeFollower': '移除',