Compare commits
No commits in common. "313313fc2e027669901eb88f914e48462f691bfa" and "1025d5a4c465e2610d75cd28ee4b30e7f3d3af9d" have entirely different histories.
313313fc2e
...
1025d5a4c4
71 changed files with 780 additions and 1808 deletions
12
CHANGELOG.md
12
CHANGELOG.md
|
@ -1,11 +1,3 @@
|
||||||
## 2024.11.0-yumechinokuni.5
|
|
||||||
|
|
||||||
- Upstream: 2024.11.0-alpha.2 タッグをマージする
|
|
||||||
- Reliability: Activitypub event deduplication
|
|
||||||
- DevOps: Prometheus サーバーメトリクス
|
|
||||||
- Enhance: ハッシュタグランギングを改善
|
|
||||||
- Enhance: PgroongaのCWサーチ + パフォーマンス改善
|
|
||||||
|
|
||||||
## 2024.11.0-yumechinokuni.4
|
## 2024.11.0-yumechinokuni.4
|
||||||
|
|
||||||
- Upstream: 2024.11.0-alpha.1 タッグをマージする
|
- Upstream: 2024.11.0-alpha.1 タッグをマージする
|
||||||
|
@ -36,7 +28,6 @@ PgroongaのCWサーチ (github.com/paricafe/misskey#d30db97b59d264450901c1dd8680
|
||||||
### General
|
### General
|
||||||
- Feat: コンテンツの表示にログインを必須にできるように
|
- Feat: コンテンツの表示にログインを必須にできるように
|
||||||
- Feat: 過去のノートを非公開化/フォロワーのみ表示可能にできるように
|
- Feat: 過去のノートを非公開化/フォロワーのみ表示可能にできるように
|
||||||
- Fix: お知らせ作成時に画像URL入力欄を空欄に変更できないのを修正 ( #14976 )
|
|
||||||
- Enhance: 依存関係の更新
|
- Enhance: 依存関係の更新
|
||||||
- Enhance: l10nの更新
|
- Enhance: l10nの更新
|
||||||
|
|
||||||
|
@ -57,7 +48,6 @@ PgroongaのCWサーチ (github.com/paricafe/misskey#d30db97b59d264450901c1dd8680
|
||||||
- Enhance: 過去に送信したフォローリクエストを確認できるように
|
- Enhance: 過去に送信したフォローリクエストを確認できるように
|
||||||
(Based on https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/663)
|
(Based on https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/663)
|
||||||
- Enhance: サイドバーを簡単に展開・折りたたみできるように ( #14981 )
|
- Enhance: サイドバーを簡単に展開・折りたたみできるように ( #14981 )
|
||||||
- Enhance: リノートメニューに「リノートの詳細」を追加
|
|
||||||
- Fix: 通知の範囲指定の設定項目が必要ない通知設定でも範囲指定の設定がでている問題を修正
|
- Fix: 通知の範囲指定の設定項目が必要ない通知設定でも範囲指定の設定がでている問題を修正
|
||||||
- Fix: Turnstileが失敗・期限切れした際にも成功扱いとなってしまう問題を修正
|
- Fix: Turnstileが失敗・期限切れした際にも成功扱いとなってしまう問題を修正
|
||||||
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/768)
|
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/768)
|
||||||
|
@ -69,8 +59,6 @@ PgroongaのCWサーチ (github.com/paricafe/misskey#d30db97b59d264450901c1dd8680
|
||||||
- Fix: メールアドレス登録有効化時の「完了」ダイアログボックスの表示条件を修正
|
- Fix: メールアドレス登録有効化時の「完了」ダイアログボックスの表示条件を修正
|
||||||
- Fix: 画面幅が狭い環境でデザインが崩れる問題を修正
|
- Fix: 画面幅が狭い環境でデザインが崩れる問題を修正
|
||||||
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/815)
|
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/815)
|
||||||
- Fix: TypeScriptの型チェック対象ファイルを限定してビルドを高速化するように
|
|
||||||
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/725)
|
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
- Enhance: DockerのNode.jsを22.11.0に更新
|
- Enhance: DockerのNode.jsを22.11.0に更新
|
||||||
|
|
|
@ -343,6 +343,7 @@ enableLocalTimeline: "تفعيل الخيط المحلي"
|
||||||
enableGlobalTimeline: "تفعيل الخيط الزمني الشامل"
|
enableGlobalTimeline: "تفعيل الخيط الزمني الشامل"
|
||||||
disablingTimelinesInfo: "سيتمكن المديرون والمشرفون من الوصول إلى كل الخيوط الزمنية حتى وإن لم تفعّل."
|
disablingTimelinesInfo: "سيتمكن المديرون والمشرفون من الوصول إلى كل الخيوط الزمنية حتى وإن لم تفعّل."
|
||||||
registration: "إنشاء حساب"
|
registration: "إنشاء حساب"
|
||||||
|
enableRegistration: "تفعيل إنشاء الحسابات الجديدة"
|
||||||
invite: "دعوة"
|
invite: "دعوة"
|
||||||
driveCapacityPerLocalAccount: "حصة التخزين لكل مستخدم محلي"
|
driveCapacityPerLocalAccount: "حصة التخزين لكل مستخدم محلي"
|
||||||
driveCapacityPerRemoteAccount: "حصة التخزين لكل مستخدم بعيد"
|
driveCapacityPerRemoteAccount: "حصة التخزين لكل مستخدم بعيد"
|
||||||
|
|
|
@ -339,6 +339,7 @@ enableLocalTimeline: "স্থানীয় টাইমলাইন চাল
|
||||||
enableGlobalTimeline: "গ্লোবাল টাইমলাইন চালু করুন"
|
enableGlobalTimeline: "গ্লোবাল টাইমলাইন চালু করুন"
|
||||||
disablingTimelinesInfo: "আপনি এই টাইমলাইনগুলি বন্ধ করলেও প্রশাসক এবং মডারেটররা এই টাইমলাইনগুলি ব্যাবহার করতে পারবে"
|
disablingTimelinesInfo: "আপনি এই টাইমলাইনগুলি বন্ধ করলেও প্রশাসক এবং মডারেটররা এই টাইমলাইনগুলি ব্যাবহার করতে পারবে"
|
||||||
registration: "নিবন্ধন"
|
registration: "নিবন্ধন"
|
||||||
|
enableRegistration: "নতুন ব্যাবহারকারী নিবন্ধন চালু করুন"
|
||||||
invite: "আমন্ত্রণ"
|
invite: "আমন্ত্রণ"
|
||||||
driveCapacityPerLocalAccount: "প্রত্যেক স্থানীয় ব্যাবহারকারীর জন্য ড্রাইভের জায়গা"
|
driveCapacityPerLocalAccount: "প্রত্যেক স্থানীয় ব্যাবহারকারীর জন্য ড্রাইভের জায়গা"
|
||||||
driveCapacityPerRemoteAccount: "প্রত্যেক রিমোট ব্যাবহারকারীর জন্য ড্রাইভের জায়গা"
|
driveCapacityPerRemoteAccount: "প্রত্যেক রিমোট ব্যাবহারকারীর জন্য ড্রাইভের জায়গা"
|
||||||
|
|
|
@ -382,6 +382,7 @@ enableLocalTimeline: "Activa la línia de temps local"
|
||||||
enableGlobalTimeline: "Activa la línia de temps global"
|
enableGlobalTimeline: "Activa la línia de temps global"
|
||||||
disablingTimelinesInfo: "Fins i tot si aquestes línies de temps són desactivades, els administradors i els moderadors poden continuar visualitzant per conveniència."
|
disablingTimelinesInfo: "Fins i tot si aquestes línies de temps són desactivades, els administradors i els moderadors poden continuar visualitzant per conveniència."
|
||||||
registration: "Registre"
|
registration: "Registre"
|
||||||
|
enableRegistration: "Permet el registre de nous usuaris"
|
||||||
invite: "Convida"
|
invite: "Convida"
|
||||||
driveCapacityPerLocalAccount: "Capacitat del disc per usuaris locals"
|
driveCapacityPerLocalAccount: "Capacitat del disc per usuaris locals"
|
||||||
driveCapacityPerRemoteAccount: "Capacitat del disc per usuaris remots"
|
driveCapacityPerRemoteAccount: "Capacitat del disc per usuaris remots"
|
||||||
|
@ -1299,7 +1300,6 @@ thisContentsAreMarkedAsSigninRequiredByAuthor: "L'autor requereix l'inici de ses
|
||||||
lockdown: "Bloquejat"
|
lockdown: "Bloquejat"
|
||||||
pleaseSelectAccount: "Seleccionar un compte"
|
pleaseSelectAccount: "Seleccionar un compte"
|
||||||
availableRoles: "Roles disponibles "
|
availableRoles: "Roles disponibles "
|
||||||
acknowledgeNotesAndEnable: "Activa'l després de comprendre els possibles perills."
|
|
||||||
_accountSettings:
|
_accountSettings:
|
||||||
requireSigninToViewContents: "És obligatori l'inici de sessió per poder veure el contingut"
|
requireSigninToViewContents: "És obligatori l'inici de sessió per poder veure el contingut"
|
||||||
requireSigninToViewContentsDescription1: "Es requereix l'inici de sessió per poder veure totes les notes i el contingut que has creat. Amb això esperem evitar que els rastrejadors recopilin informació."
|
requireSigninToViewContentsDescription1: "Es requereix l'inici de sessió per poder veure totes les notes i el contingut que has creat. Amb això esperem evitar que els rastrejadors recopilin informació."
|
||||||
|
@ -1456,8 +1456,6 @@ _serverSettings:
|
||||||
reactionsBufferingDescription: "Quan s'activa aquesta opció millora bastant el rendiment en recuperar les línies de temps reduint la càrrega de la base. Com a contrapunt, augmentarà l'ús de memòria de Redís. Desactiva aquesta opció en cas de tenir un servidor amb poca memòria o si tens problemes d'inestabilitat."
|
reactionsBufferingDescription: "Quan s'activa aquesta opció millora bastant el rendiment en recuperar les línies de temps reduint la càrrega de la base. Com a contrapunt, augmentarà l'ús de memòria de Redís. Desactiva aquesta opció en cas de tenir un servidor amb poca memòria o si tens problemes d'inestabilitat."
|
||||||
inquiryUrl: "URL de consulta "
|
inquiryUrl: "URL de consulta "
|
||||||
inquiryUrlDescription: "Escriu adreça URL per al formulari de consulta per al mantenidor del servidor o una pàgina web amb el contacte d'informació."
|
inquiryUrlDescription: "Escriu adreça URL per al formulari de consulta per al mantenidor del servidor o una pàgina web amb el contacte d'informació."
|
||||||
openRegistration: "Registres oberts"
|
|
||||||
openRegistrationWarning: "Obrir els registres és arriscat. Es recomana obrir-los només si el servidor és monitorat constantment i per respondre immediatament davant qualsevol problema."
|
|
||||||
thisSettingWillAutomaticallyOffWhenModeratorsInactive: "Si no es detecta activitat per part del moderador durant un període de temps, aquesta opció es desactiva automàticament per evitar el correu brossa."
|
thisSettingWillAutomaticallyOffWhenModeratorsInactive: "Si no es detecta activitat per part del moderador durant un període de temps, aquesta opció es desactiva automàticament per evitar el correu brossa."
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "Migrar un altre compte a aquest"
|
moveFrom: "Migrar un altre compte a aquest"
|
||||||
|
@ -2740,6 +2738,3 @@ _selfXssPrevention:
|
||||||
description1: "Si posa alguna cosa al seu compte, un usuari malintencionat podria segrestar-la o robar-li les dades."
|
description1: "Si posa alguna cosa al seu compte, un usuari malintencionat podria segrestar-la o robar-li les dades."
|
||||||
description2: "Si no entens que estàs fent %cpara ara mateix i tanca la finestra."
|
description2: "Si no entens que estàs fent %cpara ara mateix i tanca la finestra."
|
||||||
description3: "Per obtenir més informació. {link}"
|
description3: "Per obtenir més informació. {link}"
|
||||||
_followRequest:
|
|
||||||
recieved: "Sol·licituds rebudes"
|
|
||||||
sent: "Sol·licituds enviades"
|
|
||||||
|
|
|
@ -348,6 +348,7 @@ enableLocalTimeline: "Povolit lokální čas"
|
||||||
enableGlobalTimeline: "Povolit globální čas"
|
enableGlobalTimeline: "Povolit globální čas"
|
||||||
disablingTimelinesInfo: "Administrátoři a Moderátoři budou mít stálý přístup ke všem časovým osám i přes to že nejsou zapnuté."
|
disablingTimelinesInfo: "Administrátoři a Moderátoři budou mít stálý přístup ke všem časovým osám i přes to že nejsou zapnuté."
|
||||||
registration: "Registrace"
|
registration: "Registrace"
|
||||||
|
enableRegistration: "Povolit registraci novým uživatelům"
|
||||||
invite: "Pozvat"
|
invite: "Pozvat"
|
||||||
driveCapacityPerLocalAccount: "Kapacita disku na lokálního uživatele"
|
driveCapacityPerLocalAccount: "Kapacita disku na lokálního uživatele"
|
||||||
driveCapacityPerRemoteAccount: "Kapacita disku na vzdáleného uživatele"
|
driveCapacityPerRemoteAccount: "Kapacita disku na vzdáleného uživatele"
|
||||||
|
|
|
@ -10,7 +10,6 @@ username: "Benutzername"
|
||||||
password: "Passwort"
|
password: "Passwort"
|
||||||
initialPasswordForSetup: "Initiales Passwort für die Einrichtung"
|
initialPasswordForSetup: "Initiales Passwort für die Einrichtung"
|
||||||
initialPasswordIsIncorrect: "Das initiale Passwort für die Einrichtung ist falsch"
|
initialPasswordIsIncorrect: "Das initiale Passwort für die Einrichtung ist falsch"
|
||||||
initialPasswordForSetupDescription: "Verwende das in der Konfigurationsdatei angegebene Passwort, wenn du Misskey selbst installiert hast.\nWenn du einen Misskey-Hostingdienst o.ä. nutzt, verwende das dort angegebene Kennwort.\nWenn du kein Passwort festgelegt hast, lasse es leer, um fortzufahren."
|
|
||||||
forgotPassword: "Passwort vergessen"
|
forgotPassword: "Passwort vergessen"
|
||||||
fetchingAsApObject: "Wird aus dem Fediverse angefragt …"
|
fetchingAsApObject: "Wird aus dem Fediverse angefragt …"
|
||||||
ok: "OK"
|
ok: "OK"
|
||||||
|
@ -112,14 +111,11 @@ enterEmoji: "Gib ein Emoji ein"
|
||||||
renote: "Renote"
|
renote: "Renote"
|
||||||
unrenote: "Renote zurücknehmen"
|
unrenote: "Renote zurücknehmen"
|
||||||
renoted: "Renote getätigt."
|
renoted: "Renote getätigt."
|
||||||
renotedToX: "Renoted zu {name}."
|
|
||||||
cantRenote: "Renote dieses Beitrags nicht möglich."
|
cantRenote: "Renote dieses Beitrags nicht möglich."
|
||||||
cantReRenote: "Renote einer Renote nicht möglich."
|
cantReRenote: "Renote einer Renote nicht möglich."
|
||||||
quote: "Zitieren"
|
quote: "Zitieren"
|
||||||
inChannelRenote: "Kanal-interner Renote"
|
inChannelRenote: "Kanal-interner Renote"
|
||||||
inChannelQuote: "Kanal-internes Zitat"
|
inChannelQuote: "Kanal-internes Zitat"
|
||||||
renoteToChannel: "Renote zu Kanal"
|
|
||||||
renoteToOtherChannel: "Renote zu anderem Kanal"
|
|
||||||
pinnedNote: "Angeheftete Notiz"
|
pinnedNote: "Angeheftete Notiz"
|
||||||
pinned: "Angeheftet"
|
pinned: "Angeheftet"
|
||||||
you: "Du"
|
you: "Du"
|
||||||
|
@ -131,13 +127,12 @@ reactions: "Reaktionen"
|
||||||
emojiPicker: "Emoji auswählen"
|
emojiPicker: "Emoji auswählen"
|
||||||
pinnedEmojisForReactionSettingDescription: "Lege Emojis fest, die angepinnt werden sollen, um sie beim Reagieren als Erstes anzuzeigen."
|
pinnedEmojisForReactionSettingDescription: "Lege Emojis fest, die angepinnt werden sollen, um sie beim Reagieren als Erstes anzuzeigen."
|
||||||
pinnedEmojisSettingDescription: "Lege Emojis fest, die angepinnt werden sollen, um sie in der Emoji-Auswahl als Erstes anzuzeigen"
|
pinnedEmojisSettingDescription: "Lege Emojis fest, die angepinnt werden sollen, um sie in der Emoji-Auswahl als Erstes anzuzeigen"
|
||||||
emojiPickerDisplay: "Anzeige der Emoji-Auswahl"
|
|
||||||
overwriteFromPinnedEmojisForReaction: "Überschreiben mit den Reaktions-Einstellungen"
|
overwriteFromPinnedEmojisForReaction: "Überschreiben mit den Reaktions-Einstellungen"
|
||||||
overwriteFromPinnedEmojis: "Überschreiben mit den allgemeinen Einstellungen"
|
overwriteFromPinnedEmojis: "Überschreiben mit den allgemeinen Einstellungen"
|
||||||
reactionSettingDescription2: "Ziehe um Anzuordnen, klicke um zu löschen, drücke „+“ um hinzuzufügen"
|
reactionSettingDescription2: "Ziehe um Anzuordnen, klicke um zu löschen, drücke „+“ um hinzuzufügen"
|
||||||
rememberNoteVisibility: "Notizsichtbarkeit merken"
|
rememberNoteVisibility: "Notizsichtbarkeit merken"
|
||||||
attachCancel: "Anhang entfernen"
|
attachCancel: "Anhang entfernen"
|
||||||
deleteFile: "Datei löschen"
|
deleteFile: "Datei gelöscht"
|
||||||
markAsSensitive: "Als sensibel markieren"
|
markAsSensitive: "Als sensibel markieren"
|
||||||
unmarkAsSensitive: "Als nicht sensibel markieren"
|
unmarkAsSensitive: "Als nicht sensibel markieren"
|
||||||
enterFileName: "Dateinamen eingeben"
|
enterFileName: "Dateinamen eingeben"
|
||||||
|
@ -185,8 +180,6 @@ addAccount: "Benutzerkonto hinzufügen"
|
||||||
reloadAccountsList: "Benutzerkontoliste aktualisieren"
|
reloadAccountsList: "Benutzerkontoliste aktualisieren"
|
||||||
loginFailed: "Anmeldung fehlgeschlagen"
|
loginFailed: "Anmeldung fehlgeschlagen"
|
||||||
showOnRemote: "Auf Ursprungsinstanz ansehen"
|
showOnRemote: "Auf Ursprungsinstanz ansehen"
|
||||||
chooseServerOnMisskeyHub: "Wähle einen Server aus dem Misskey Hub"
|
|
||||||
inputHostName: "Gib die Domain an"
|
|
||||||
general: "Allgemein"
|
general: "Allgemein"
|
||||||
wallpaper: "Hintergrund"
|
wallpaper: "Hintergrund"
|
||||||
setWallpaper: "Hintergrund festlegen"
|
setWallpaper: "Hintergrund festlegen"
|
||||||
|
@ -213,7 +206,6 @@ perDay: "Pro Tag"
|
||||||
stopActivityDelivery: "Senden von Aktivitäten einstellen"
|
stopActivityDelivery: "Senden von Aktivitäten einstellen"
|
||||||
blockThisInstance: "Diese Instanz blockieren"
|
blockThisInstance: "Diese Instanz blockieren"
|
||||||
silenceThisInstance: "Instanz stummschalten"
|
silenceThisInstance: "Instanz stummschalten"
|
||||||
mediaSilenceThisInstance: "Medien dieses Servers stummschalten"
|
|
||||||
operations: "Aktionen"
|
operations: "Aktionen"
|
||||||
software: "Software"
|
software: "Software"
|
||||||
version: "Version"
|
version: "Version"
|
||||||
|
@ -235,8 +227,6 @@ blockedInstances: "Blockierte Instanzen"
|
||||||
blockedInstancesDescription: "Gib die Hostnamen der Instanzen, welche blockiert werden sollen, durch Zeilenumbrüche getrennt an. Blockierte Instanzen können mit dieser instanz nicht mehr kommunizieren."
|
blockedInstancesDescription: "Gib die Hostnamen der Instanzen, welche blockiert werden sollen, durch Zeilenumbrüche getrennt an. Blockierte Instanzen können mit dieser instanz nicht mehr kommunizieren."
|
||||||
silencedInstances: "Stummgeschaltete Instanzen"
|
silencedInstances: "Stummgeschaltete Instanzen"
|
||||||
silencedInstancesDescription: "Gib die Hostnamen der Instanzen, welche stummgeschaltet werden sollen, durch Zeilenumbrüche getrennt an. Alle Konten dieser Instanzen werden als stummgeschaltet behandelt, können nur noch Follow-Anfragen stellen und wenn nicht gefolgt keine lokalen Konten erwähnen. Blockierte Instanzen sind davon nicht betroffen."
|
silencedInstancesDescription: "Gib die Hostnamen der Instanzen, welche stummgeschaltet werden sollen, durch Zeilenumbrüche getrennt an. Alle Konten dieser Instanzen werden als stummgeschaltet behandelt, können nur noch Follow-Anfragen stellen und wenn nicht gefolgt keine lokalen Konten erwähnen. Blockierte Instanzen sind davon nicht betroffen."
|
||||||
mediaSilencedInstances: "Medien-stummgeschaltete Server"
|
|
||||||
mediaSilencedInstancesDescription: "Gib pro Zeile die Hostnamen der Server ein, dessen Medien du stummschalten möchtest. Alle Benutzerkonten der aufgeführten Server werden als sensibel behandelt und können keine benutzerdefinierten Emojis verwenden. Gesperrte Server sind davon nicht betroffen."
|
|
||||||
muteAndBlock: "Stummschaltungen und Blockierungen"
|
muteAndBlock: "Stummschaltungen und Blockierungen"
|
||||||
mutedUsers: "Stummgeschaltete Benutzer"
|
mutedUsers: "Stummgeschaltete Benutzer"
|
||||||
blockedUsers: "Blockierte Benutzer"
|
blockedUsers: "Blockierte Benutzer"
|
||||||
|
@ -335,7 +325,6 @@ renameFolder: "Ordner umbenennen"
|
||||||
deleteFolder: "Ordner löschen"
|
deleteFolder: "Ordner löschen"
|
||||||
folder: "Ordner"
|
folder: "Ordner"
|
||||||
addFile: "Datei hinzufügen"
|
addFile: "Datei hinzufügen"
|
||||||
showFile: "Datei anzeigen"
|
|
||||||
emptyDrive: "Deine Drive ist leer"
|
emptyDrive: "Deine Drive ist leer"
|
||||||
emptyFolder: "Dieser Ordner ist leer"
|
emptyFolder: "Dieser Ordner ist leer"
|
||||||
unableToDelete: "Nicht löschbar"
|
unableToDelete: "Nicht löschbar"
|
||||||
|
@ -378,6 +367,7 @@ enableLocalTimeline: "Lokale Chronik aktivieren"
|
||||||
enableGlobalTimeline: "Globale Chronik aktivieren"
|
enableGlobalTimeline: "Globale Chronik aktivieren"
|
||||||
disablingTimelinesInfo: "Administratoren und Moderatoren haben immer Zugriff auf alle Chroniken, auch wenn diese deaktiviert sind."
|
disablingTimelinesInfo: "Administratoren und Moderatoren haben immer Zugriff auf alle Chroniken, auch wenn diese deaktiviert sind."
|
||||||
registration: "Registrieren"
|
registration: "Registrieren"
|
||||||
|
enableRegistration: "Registrierung neuer Benutzer erlauben"
|
||||||
invite: "Einladen"
|
invite: "Einladen"
|
||||||
driveCapacityPerLocalAccount: "Drive-Kapazität pro lokalem Benutzerkonto"
|
driveCapacityPerLocalAccount: "Drive-Kapazität pro lokalem Benutzerkonto"
|
||||||
driveCapacityPerRemoteAccount: "Drive-Kapazität pro Benutzer fremder Instanzen"
|
driveCapacityPerRemoteAccount: "Drive-Kapazität pro Benutzer fremder Instanzen"
|
||||||
|
@ -483,7 +473,6 @@ retype: "Erneut eingeben"
|
||||||
noteOf: "Notiz von {user}"
|
noteOf: "Notiz von {user}"
|
||||||
quoteAttached: "Zitat"
|
quoteAttached: "Zitat"
|
||||||
quoteQuestion: "Als Zitat anhängen?"
|
quoteQuestion: "Als Zitat anhängen?"
|
||||||
attachAsFileQuestion: "Der Text in der Zwischenablage ist lang. Möchtest du ihn als Textdatei anhängen?"
|
|
||||||
noMessagesYet: "Noch keine Nachrichten vorhanden"
|
noMessagesYet: "Noch keine Nachrichten vorhanden"
|
||||||
newMessageExists: "Du hast eine neue Nachricht"
|
newMessageExists: "Du hast eine neue Nachricht"
|
||||||
onlyOneFileCanBeAttached: "Es kann pro Nachricht nur eine Datei angehängt werden"
|
onlyOneFileCanBeAttached: "Es kann pro Nachricht nur eine Datei angehängt werden"
|
||||||
|
@ -509,11 +498,7 @@ uiLanguage: "Sprache der Benutzeroberfläche"
|
||||||
aboutX: "Über {x}"
|
aboutX: "Über {x}"
|
||||||
emojiStyle: "Emoji-Stil"
|
emojiStyle: "Emoji-Stil"
|
||||||
native: "Nativ"
|
native: "Nativ"
|
||||||
menuStyle: "Menü Stil"
|
|
||||||
style: "Stil"
|
|
||||||
popup: "Pop-up"
|
|
||||||
showNoteActionsOnlyHover: "Notizmenü nur bei Mouseover anzeigen"
|
showNoteActionsOnlyHover: "Notizmenü nur bei Mouseover anzeigen"
|
||||||
showReactionsCount: "Zeige die Anzahl der Reaktionen auf Notizen an"
|
|
||||||
noHistory: "Kein Verlauf gefunden"
|
noHistory: "Kein Verlauf gefunden"
|
||||||
signinHistory: "Anmeldungsverlauf"
|
signinHistory: "Anmeldungsverlauf"
|
||||||
enableAdvancedMfm: "Erweitertes MFM aktivieren"
|
enableAdvancedMfm: "Erweitertes MFM aktivieren"
|
||||||
|
@ -594,7 +579,6 @@ ascendingOrder: "Aufsteigende Reihenfolge"
|
||||||
descendingOrder: "Absteigende Reihenfolge"
|
descendingOrder: "Absteigende Reihenfolge"
|
||||||
scratchpad: "Testumgebung"
|
scratchpad: "Testumgebung"
|
||||||
scratchpadDescription: "Die Testumgebung bietet einen Bereich für AiScript-Experimente. Dort kannst du AiScript schreiben, ausführen sowie dessen Auswirkungen auf Misskey überprüfen."
|
scratchpadDescription: "Die Testumgebung bietet einen Bereich für AiScript-Experimente. Dort kannst du AiScript schreiben, ausführen sowie dessen Auswirkungen auf Misskey überprüfen."
|
||||||
uiInspector: "UI-Inspektor"
|
|
||||||
output: "Ausgabe"
|
output: "Ausgabe"
|
||||||
script: "Skript"
|
script: "Skript"
|
||||||
disablePagesScript: "AiScript auf Seiten deaktivieren"
|
disablePagesScript: "AiScript auf Seiten deaktivieren"
|
||||||
|
@ -675,7 +659,6 @@ smtpSecure: "Für SMTP-Verbindungen implizit SSL/TLS verwenden"
|
||||||
smtpSecureInfo: "Schalte dies aus, falls du STARTTLS verwendest."
|
smtpSecureInfo: "Schalte dies aus, falls du STARTTLS verwendest."
|
||||||
testEmail: "Emailversand testen"
|
testEmail: "Emailversand testen"
|
||||||
wordMute: "Wortstummschaltung"
|
wordMute: "Wortstummschaltung"
|
||||||
hardWordMute: "Harte Wort-Stummschaltung"
|
|
||||||
regexpError: "Fehler in einem regulären Ausdruck"
|
regexpError: "Fehler in einem regulären Ausdruck"
|
||||||
regexpErrorDescription: "Im regulären Ausdruck deiner in Zeile {line} von {tab}en Wortstummschaltungen ist ein Fehler aufgetreten:"
|
regexpErrorDescription: "Im regulären Ausdruck deiner in Zeile {line} von {tab}en Wortstummschaltungen ist ein Fehler aufgetreten:"
|
||||||
instanceMute: "Instanzstummschaltungen"
|
instanceMute: "Instanzstummschaltungen"
|
||||||
|
@ -697,7 +680,6 @@ useGlobalSettingDesc: "Ist diese Option aktiviert, werden die Benachrichtigungse
|
||||||
other: "Anderes"
|
other: "Anderes"
|
||||||
regenerateLoginToken: "Anmeldetoken regenerieren"
|
regenerateLoginToken: "Anmeldetoken regenerieren"
|
||||||
regenerateLoginTokenDescription: "Den zur Anmeldung intern verwendeten Token regenerieren. Normalerweise wird dies nicht benötigt. Bei Regeneration werden alle Geräte ausgeloggt."
|
regenerateLoginTokenDescription: "Den zur Anmeldung intern verwendeten Token regenerieren. Normalerweise wird dies nicht benötigt. Bei Regeneration werden alle Geräte ausgeloggt."
|
||||||
theKeywordWhenSearchingForCustomEmoji: "Das ist das Schlagwort beim Suchen von benutzerdefinierten Emojis."
|
|
||||||
setMultipleBySeparatingWithSpace: "Trenne Elemente durch ein Leerzeichen um mehrere Einstellungen zu kofigurieren."
|
setMultipleBySeparatingWithSpace: "Trenne Elemente durch ein Leerzeichen um mehrere Einstellungen zu kofigurieren."
|
||||||
fileIdOrUrl: "Datei-ID oder URL"
|
fileIdOrUrl: "Datei-ID oder URL"
|
||||||
behavior: "Verhalten"
|
behavior: "Verhalten"
|
||||||
|
@ -907,8 +889,6 @@ makeReactionsPublicDescription: "Jeder wird die Liste deiner gesendeten Reaktion
|
||||||
classic: "Classic"
|
classic: "Classic"
|
||||||
muteThread: "Thread stummschalten"
|
muteThread: "Thread stummschalten"
|
||||||
unmuteThread: "Threadstummschaltung aufheben"
|
unmuteThread: "Threadstummschaltung aufheben"
|
||||||
followingVisibility: "Sichtbarkeit der Gefolgten"
|
|
||||||
followersVisibility: "Sichtbarkeit der Folgenden"
|
|
||||||
continueThread: "Weiteren Threadverlauf anzeigen"
|
continueThread: "Weiteren Threadverlauf anzeigen"
|
||||||
deleteAccountConfirm: "Dein Benutzerkonto wird unwiderruflich gelöscht. Trotzdem fortfahren?"
|
deleteAccountConfirm: "Dein Benutzerkonto wird unwiderruflich gelöscht. Trotzdem fortfahren?"
|
||||||
incorrectPassword: "Falsches Passwort."
|
incorrectPassword: "Falsches Passwort."
|
||||||
|
@ -1041,7 +1021,6 @@ thisPostMayBeAnnoyingHome: "Zur Startseite schicken"
|
||||||
thisPostMayBeAnnoyingCancel: "Abbrechen"
|
thisPostMayBeAnnoyingCancel: "Abbrechen"
|
||||||
thisPostMayBeAnnoyingIgnore: "Trotzdem schicken"
|
thisPostMayBeAnnoyingIgnore: "Trotzdem schicken"
|
||||||
collapseRenotes: "Bereits gesehene Renotes verkürzt anzeigen"
|
collapseRenotes: "Bereits gesehene Renotes verkürzt anzeigen"
|
||||||
collapseRenotesDescription: "Klappe Notizen ein, auf die du bereits reagiert oder die du renoted hast."
|
|
||||||
internalServerError: "Serverinterner Fehler"
|
internalServerError: "Serverinterner Fehler"
|
||||||
internalServerErrorDescription: "Im Server ist ein unerwarteter Fehler aufgetreten."
|
internalServerErrorDescription: "Im Server ist ein unerwarteter Fehler aufgetreten."
|
||||||
copyErrorInfo: "Fehlerdetails kopieren"
|
copyErrorInfo: "Fehlerdetails kopieren"
|
||||||
|
@ -1066,7 +1045,6 @@ sensitiveWords: "Sensible Wörter"
|
||||||
sensitiveWordsDescription: "Die Notizsichtbarkeit aller Notizen, die diese Wörter enthalten, wird automatisch auf \"Startseite\" gesetzt. Durch Zeilenumbrüche können mehrere konfiguriert werden."
|
sensitiveWordsDescription: "Die Notizsichtbarkeit aller Notizen, die diese Wörter enthalten, wird automatisch auf \"Startseite\" gesetzt. Durch Zeilenumbrüche können mehrere konfiguriert werden."
|
||||||
sensitiveWordsDescription2: "Durch die Verwendung von Leerzeichen können AND-Verknüpfungen angegeben werden und durch das Umgeben von Schrägstrichen können reguläre Ausdrücke verwendet werden."
|
sensitiveWordsDescription2: "Durch die Verwendung von Leerzeichen können AND-Verknüpfungen angegeben werden und durch das Umgeben von Schrägstrichen können reguläre Ausdrücke verwendet werden."
|
||||||
prohibitedWords: "Verbotene Wörter"
|
prohibitedWords: "Verbotene Wörter"
|
||||||
prohibitedWordsDescription: "Aktiviert eine Fehlermeldung, wenn versucht wird, eine Notiz zu veröffentlichen, die das/die eingestellte(n) Wort(e) enthält. Mehrere Begriffe können durch Zeilenumbrüche getrennt festgelegt werden."
|
|
||||||
prohibitedWordsDescription2: "Durch die Verwendung von Leerzeichen können AND-Verknüpfungen angegeben werden und durch das Umgeben von Schrägstrichen können reguläre Ausdrücke verwendet werden."
|
prohibitedWordsDescription2: "Durch die Verwendung von Leerzeichen können AND-Verknüpfungen angegeben werden und durch das Umgeben von Schrägstrichen können reguläre Ausdrücke verwendet werden."
|
||||||
hiddenTags: "Ausgeblendete Hashtags"
|
hiddenTags: "Ausgeblendete Hashtags"
|
||||||
hiddenTagsDescription: "Die hier eingestellten Tags werden nicht mehr in den Trends angezeigt. Mit der Umschalttaste können mehrere ausgewählt werden."
|
hiddenTagsDescription: "Die hier eingestellten Tags werden nicht mehr in den Trends angezeigt. Mit der Umschalttaste können mehrere ausgewählt werden."
|
||||||
|
@ -1192,9 +1170,6 @@ confirmShowRepliesAll: "Dies ist eine unwiderrufliche Aktion. Wirklich Antworten
|
||||||
confirmHideRepliesAll: "Dies ist eine unwiderrufliche Aktion. Wirklich Antworten von allen momentan gefolgten Benutzern nicht in der Chronik anzeigen?"
|
confirmHideRepliesAll: "Dies ist eine unwiderrufliche Aktion. Wirklich Antworten von allen momentan gefolgten Benutzern nicht in der Chronik anzeigen?"
|
||||||
externalServices: "Externe Dienste"
|
externalServices: "Externe Dienste"
|
||||||
sourceCode: "Quellcode"
|
sourceCode: "Quellcode"
|
||||||
sourceCodeIsNotYetProvided: "Der Quellcode ist noch nicht verfügbar. Kontaktiere den Administrator, um das Problem zu lösen."
|
|
||||||
repositoryUrl: "Repository URL"
|
|
||||||
repositoryUrlOrTarballRequired: "Wenn du kein Repository veröffentlicht hast, musst du stattdessen einen Tarball bereitstellen. Siehe .config/example.yml für weitere Informationen."
|
|
||||||
impressum: "Impressum"
|
impressum: "Impressum"
|
||||||
impressumUrl: "Impressums-URL"
|
impressumUrl: "Impressums-URL"
|
||||||
impressumDescription: "In manchen Ländern, wie Deutschland und dessen Umgebung, ist die Angabe von Betreiberinformationen (ein Impressum) bei kommerziellem Betrieb zwingend."
|
impressumDescription: "In manchen Ländern, wie Deutschland und dessen Umgebung, ist die Angabe von Betreiberinformationen (ein Impressum) bei kommerziellem Betrieb zwingend."
|
||||||
|
@ -1217,76 +1192,34 @@ cwNotationRequired: "Ist \"Inhaltswarnung verwenden\" aktiviert, muss eine Besch
|
||||||
doReaction: "Reagieren"
|
doReaction: "Reagieren"
|
||||||
code: "Code"
|
code: "Code"
|
||||||
remainingN: "Verbleibend: {n}"
|
remainingN: "Verbleibend: {n}"
|
||||||
overwriteContentConfirm: "Bist du sicher, dass du den aktuellen Inhalt überschreiben willst?"
|
|
||||||
seasonalScreenEffect: "Saisonaler Bildschirmeffekt"
|
|
||||||
decorate: "Dekorieren"
|
decorate: "Dekorieren"
|
||||||
addMfmFunction: "MFM hinzufügen"
|
addMfmFunction: "MFM hinzufügen"
|
||||||
enableQuickAddMfmFunction: "Erweiterte MFM-Auswahl anzeigen"
|
|
||||||
sfx: "Soundeffekte"
|
sfx: "Soundeffekte"
|
||||||
soundWillBePlayed: "Es wird Ton wiedergegeben"
|
|
||||||
showReplay: "Wiederholung anzeigen"
|
showReplay: "Wiederholung anzeigen"
|
||||||
ranking: "Rangliste"
|
|
||||||
lastNDays: "Letzten {n} Tage"
|
lastNDays: "Letzten {n} Tage"
|
||||||
backToTitle: "Zurück zum Startbildschirm"
|
|
||||||
enableHorizontalSwipe: "Wischen, um zwischen Tabs zu wechseln"
|
|
||||||
loading: "Laden"
|
|
||||||
surrender: "Abbrechen"
|
surrender: "Abbrechen"
|
||||||
gameRetry: "Erneut versuchen"
|
|
||||||
notUsePleaseLeaveBlank: "Leer lassen, wenn nicht verwendet"
|
|
||||||
useTotp: "Gib das Einmalpasswort ein"
|
|
||||||
useBackupCode: "Verwende die Backup-Codes"
|
|
||||||
launchApp: "Starte die App"
|
|
||||||
useNativeUIForVideoAudioPlayer: "Browser-Benutzeroberfläche für die Video- und Audiowiedergabe verwenden"
|
|
||||||
keepOriginalFilename: "Ursprünglichen Dateinamen beibehalten"
|
keepOriginalFilename: "Ursprünglichen Dateinamen beibehalten"
|
||||||
keepOriginalFilenameDescription: "Wenn diese Einstellung deaktiviert ist, wird der Dateiname beim Hochladen automatisch durch eine zufällige Zeichenfolge ersetzt."
|
|
||||||
noDescription: "Keine Beschreibung vorhanden"
|
|
||||||
tryAgain: "Bitte später erneut versuchen"
|
tryAgain: "Bitte später erneut versuchen"
|
||||||
confirmWhenRevealingSensitiveMedia: "Das Anzeigen von sensiblen Medien bestätigen"
|
confirmWhenRevealingSensitiveMedia: "Das Anzeigen von sensiblen Medien bestätigen"
|
||||||
createdLists: "Erstellte Listen"
|
createdLists: "Erstellte Listen"
|
||||||
createdAntennas: "Erstellte Antennen"
|
createdAntennas: "Erstellte Antennen"
|
||||||
fromX: "Von {x}"
|
|
||||||
genEmbedCode: "Einbettungscode generieren"
|
genEmbedCode: "Einbettungscode generieren"
|
||||||
noteOfThisUser: "Notizen dieses Benutzers"
|
noteOfThisUser: "Notizen dieses Benutzers"
|
||||||
clipNoteLimitExceeded: "Zu diesem Clip können keine weiteren Notizen hinzugefügt werden."
|
clipNoteLimitExceeded: "Zu diesem Clip können keine weiteren Notizen hinzugefügt werden."
|
||||||
discard: "Verwerfen"
|
discard: "Verwerfen"
|
||||||
thereAreNChanges: "Es gibt {n} Änderung(en)"
|
|
||||||
signinWithPasskey: "Mit Passkey anmelden"
|
signinWithPasskey: "Mit Passkey anmelden"
|
||||||
passkeyVerificationFailed: "Die Passkey-Verifizierung ist fehlgeschlagen."
|
passkeyVerificationFailed: "Die Passkey-Verifizierung ist fehlgeschlagen."
|
||||||
passkeyVerificationSucceededButPasswordlessLoginDisabled: "Die Verifizierung des Passkeys war erfolgreich, aber die passwortlose Anmeldung ist deaktiviert."
|
passkeyVerificationSucceededButPasswordlessLoginDisabled: "Die Verifizierung des Passkeys war erfolgreich, aber die passwortlose Anmeldung ist deaktiviert."
|
||||||
prohibitedWordsForNameOfUser: "Verbotene Begriffe für Benutzernamen"
|
|
||||||
prohibitedWordsForNameOfUserDescription: "Wenn eine Zeichenfolge aus dieser Liste im Namen eines Benutzers enthalten ist, wird der Benutzername abgelehnt. Benutzer mit Moderatorenrechten sind von dieser Einschränkung nicht betroffen."
|
|
||||||
yourNameContainsProhibitedWords: "Dein Name enthält einen verbotenen Begriff"
|
|
||||||
yourNameContainsProhibitedWordsDescription: "Der Name enthält eine verbotene Zeichenfolge. Wende dich an deinen Serveradministrator, wenn du diesen Namen verwenden möchtest."
|
|
||||||
pleaseSelectAccount: "Bitte Konto auswählen"
|
pleaseSelectAccount: "Bitte Konto auswählen"
|
||||||
availableRoles: "Verfügbare Rollen"
|
availableRoles: "Verfügbare Rollen"
|
||||||
_accountSettings:
|
|
||||||
requireSigninToViewContents: "Anmeldung erfordern, um Inhalte anzuzeigen"
|
|
||||||
requireSigninToViewContentsDescription1: "Erfordere eine Anmeldung, um alle Notizen und andere Inhalte anzuzeigen, die du erstellt hast. Dadurch wird verhindert, dass Crawler deine Informationen sammeln."
|
|
||||||
requireSigninToViewContentsDescription3: "Diese Einschränkungen gelten möglicherweise nicht für föderierte Inhalte von anderen Servern."
|
|
||||||
makeNotesFollowersOnlyBefore: "Macht frühere Notizen nur für Follower sichtbar"
|
|
||||||
mayNotEffectForFederatedNotes: "Dies hat möglicherweise keine Auswirkungen auf Notizen, die an andere Server föderiert werden."
|
|
||||||
_abuseUserReport:
|
_abuseUserReport:
|
||||||
forward: "Weiterleiten"
|
forward: "Weiterleiten"
|
||||||
forwardDescription: "Leite die Meldung an einen entfernten Server als anonymes Systemkonto weiter."
|
|
||||||
accept: "Akzeptieren"
|
|
||||||
reject: "Ablehnen"
|
|
||||||
_delivery:
|
_delivery:
|
||||||
stop: "Gesperrt"
|
stop: "Gesperrt"
|
||||||
_type:
|
_type:
|
||||||
none: "Wird veröffentlicht"
|
none: "Wird veröffentlicht"
|
||||||
_bubbleGame:
|
_bubbleGame:
|
||||||
howToPlay: "Wie man spielt"
|
howToPlay: "Wie man spielt"
|
||||||
hold: "Halten"
|
|
||||||
_score:
|
|
||||||
score: "Spielstand"
|
|
||||||
scoreYen: "Verdienter Geldbetrag"
|
|
||||||
highScore: "Höchstpunktzahl"
|
|
||||||
maxChain: "Maximale Anzahl an Verkettungen"
|
|
||||||
yen: "{yen} Yen"
|
|
||||||
_howToPlay:
|
|
||||||
section1: "Passe die Position an und lasse das Objekt in das Spielfeld fallen."
|
|
||||||
section2: "Wenn sich zwei Objekte der gleichen Art berühren, verwandeln sie sich in ein anderes Objekt und du bekommst Punkte."
|
|
||||||
section3: "Das Spiel ist vorbei, wenn die Objekte aus dem Spielfeld herausragen. Versuche eine hohe Punktzahl zu erreichen, indem du die Objekte miteinander verschmelzt, ohne dass das Spielfeld überläuft!"
|
|
||||||
_announcement:
|
_announcement:
|
||||||
forExistingUsers: "Nur für existierende Nutzer"
|
forExistingUsers: "Nur für existierende Nutzer"
|
||||||
forExistingUsersDescription: "Ist diese Option aktiviert, wird diese Ankündigung nur Nutzern angezeigt, die zum Zeitpunkt der Ankündigung bereits registriert sind. Ist sie deaktiviert, wird sie auch Nutzern, die sich nach dessen Veröffentlichung registrieren, angezeigt."
|
forExistingUsersDescription: "Ist diese Option aktiviert, wird diese Ankündigung nur Nutzern angezeigt, die zum Zeitpunkt der Ankündigung bereits registriert sind. Ist sie deaktiviert, wird sie auch Nutzern, die sich nach dessen Veröffentlichung registrieren, angezeigt."
|
||||||
|
@ -1330,18 +1263,8 @@ _initialTutorial:
|
||||||
reply: "Klicke auf diesen Button, um auf eine Nachricht zu antworten. Es ist auch möglich, auf Antworten zu antworten und die Unterhaltung wie einen Thread fortzusetzen."
|
reply: "Klicke auf diesen Button, um auf eine Nachricht zu antworten. Es ist auch möglich, auf Antworten zu antworten und die Unterhaltung wie einen Thread fortzusetzen."
|
||||||
_reaction:
|
_reaction:
|
||||||
title: "Was sind Reaktionen?"
|
title: "Was sind Reaktionen?"
|
||||||
description: "Auf Notizen kann mit verschiedenen Emojis reagiert werden. Reaktionen ermöglichen es dir, Nuancen auszudrücken, die mit einem einfachen „Gefällt mir“ vielleicht nicht ausgedrückt werden können."
|
|
||||||
letsTryReacting: "Reaktionen können durch Klicken auf die Schaltfläche „+“ in der Notiz hinzugefügt werden. Versuche, auf diese Beispielnotiz zu reagieren!"
|
|
||||||
reactToContinue: "Füge eine Reaktion hinzu, um fortzufahren."
|
reactToContinue: "Füge eine Reaktion hinzu, um fortzufahren."
|
||||||
reactNotification: "Du erhältst Echtzeit-Benachrichtigungen, wenn jemand auf deine Notiz reagiert."
|
reactNotification: "Du erhältst Echtzeit-Benachrichtigungen, wenn jemand auf deine Notiz reagiert."
|
||||||
reactDone: "Du kannst eine Reaktion zurücknehmen, indem du auf den '-' Button drückst."
|
|
||||||
_timeline:
|
|
||||||
title: "So funktionieren die Chroniken"
|
|
||||||
home: "Du kannst Beiträge von den Konten sehen, denen du folgst."
|
|
||||||
local: "Du kannst Beiträge aller Benutzer auf diesem Server sehen."
|
|
||||||
social: "Notizen von der Startseite und der lokalen Chronik werden angezeigt."
|
|
||||||
global: "Du kannst Notizen von allen föderierten Servern sehen."
|
|
||||||
description2: "Du kannst jederzeit am oberen Rand des Bildschirms zwischen den jeweiligen Chroniken wechseln."
|
|
||||||
_postNote:
|
_postNote:
|
||||||
_visibility:
|
_visibility:
|
||||||
description: "Du kannst einschränken, wer deine Notiz sehen kann."
|
description: "Du kannst einschränken, wer deine Notiz sehen kann."
|
||||||
|
@ -1349,16 +1272,8 @@ _initialTutorial:
|
||||||
doNotSendConfidencialOnDirect1: "Sei vorsichtig, wenn du sensible Informationen verschickst!"
|
doNotSendConfidencialOnDirect1: "Sei vorsichtig, wenn du sensible Informationen verschickst!"
|
||||||
_cw:
|
_cw:
|
||||||
title: "Inhaltswarnung"
|
title: "Inhaltswarnung"
|
||||||
_exampleNote:
|
|
||||||
note: "Ich hatte gerade einen Donut mit Schokoladenüberzug 🍩😋"
|
|
||||||
_howToMakeAttachmentsSensitive:
|
|
||||||
tryThisFile: "Versuche, das angehängte Bild als sensibel zu markieren!"
|
|
||||||
method: "Um einen Anhang als sensibel zu kennzeichnen, klicke auf das Vorschaubild der Datei, um das Menü zu öffnen, und klicke auf „Als sensibel markieren“."
|
|
||||||
sensitiveSucceeded: "Wenn du Dateien anhängst, stelle bitte die Sensibilität entsprechend der Serverrichtlinien ein."
|
|
||||||
doItToContinue: "Markiere die angehängte Datei als sensibel, um fortzufahren."
|
|
||||||
_done:
|
_done:
|
||||||
title: "Du hast das Tutorial abgeschlossen! 🎉"
|
title: "Du hast das Tutorial abgeschlossen! 🎉"
|
||||||
description: "Die hier beschriebenen Funktionen sind nur ein kleiner Teil dessen, was Misskey zu bieten hat; um mehr darüber zu erfahren, wie du Misskey benutzen kannst, besuche bitte {link}."
|
|
||||||
_timelineDescription:
|
_timelineDescription:
|
||||||
local: "In der lokalen Chronik siehst du Notizen von allen Benutzern auf diesem Server."
|
local: "In der lokalen Chronik siehst du Notizen von allen Benutzern auf diesem Server."
|
||||||
global: "In der globalen Chronik siehst du Notizen von allen föderierten Servern."
|
global: "In der globalen Chronik siehst du Notizen von allen föderierten Servern."
|
||||||
|
@ -1376,7 +1291,6 @@ _serverSettings:
|
||||||
fanoutTimelineDescription: "Ist diese Option aktiviert, kann eine erhebliche Verbesserung im Abrufen von Chroniken und eine Reduzierung der Datenbankbelastung erzielt werden, im Gegenzug zu einer Steigerung in der Speichernutzung von Redis. Bei geringem Serverspeicher oder Serverinstabilität kann diese Option deaktiviert werden."
|
fanoutTimelineDescription: "Ist diese Option aktiviert, kann eine erhebliche Verbesserung im Abrufen von Chroniken und eine Reduzierung der Datenbankbelastung erzielt werden, im Gegenzug zu einer Steigerung in der Speichernutzung von Redis. Bei geringem Serverspeicher oder Serverinstabilität kann diese Option deaktiviert werden."
|
||||||
fanoutTimelineDbFallback: "Auf die Datenbank zurückfallen"
|
fanoutTimelineDbFallback: "Auf die Datenbank zurückfallen"
|
||||||
fanoutTimelineDbFallbackDescription: "Ist diese Option aktiviert, wird die Chronik auf zusätzliche Abfragen in der Datenbank zurückgreifen, wenn sich die Chronik nicht im Cache befindet. Eine Deaktivierung führt zu geringerer Serverlast, aber schränkt den Zeitraum der abrufbaren Chronik ein. "
|
fanoutTimelineDbFallbackDescription: "Ist diese Option aktiviert, wird die Chronik auf zusätzliche Abfragen in der Datenbank zurückgreifen, wenn sich die Chronik nicht im Cache befindet. Eine Deaktivierung führt zu geringerer Serverlast, aber schränkt den Zeitraum der abrufbaren Chronik ein. "
|
||||||
thisSettingWillAutomaticallyOffWhenModeratorsInactive: "Wenn über einen bestimmten Zeitraum keine Moderatorenaktivität festgestellt wird, wird diese Einstellung automatisch deaktiviert, um Spam zu verhindern."
|
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "Von einem anderen Konto zu diesem migrieren"
|
moveFrom: "Von einem anderen Konto zu diesem migrieren"
|
||||||
moveFromSub: "Alias für ein anderes Konto erstellen"
|
moveFromSub: "Alias für ein anderes Konto erstellen"
|
||||||
|
@ -1635,7 +1549,6 @@ _achievements:
|
||||||
title: "Testüberfluss"
|
title: "Testüberfluss"
|
||||||
description: "Betätige den Benachrichtigungstest mehrfach innerhalb einer extrem kurzen Zeitspanne"
|
description: "Betätige den Benachrichtigungstest mehrfach innerhalb einer extrem kurzen Zeitspanne"
|
||||||
_tutorialCompleted:
|
_tutorialCompleted:
|
||||||
title: "Misskey Grundkurs-Diplom"
|
|
||||||
description: "Tutorial abgeschlossen"
|
description: "Tutorial abgeschlossen"
|
||||||
_bubbleGameExplodingHead:
|
_bubbleGameExplodingHead:
|
||||||
title: "🤯"
|
title: "🤯"
|
||||||
|
@ -1681,7 +1594,6 @@ _role:
|
||||||
gtlAvailable: "Kann auf die globale Chronik zugreifen"
|
gtlAvailable: "Kann auf die globale Chronik zugreifen"
|
||||||
ltlAvailable: "Kann auf die lokale Chronik zugreifen"
|
ltlAvailable: "Kann auf die lokale Chronik zugreifen"
|
||||||
canPublicNote: "Kann öffentliche Notizen erstellen"
|
canPublicNote: "Kann öffentliche Notizen erstellen"
|
||||||
mentionMax: "Maximale Anzahl von Erwähnungen in einer Notiz"
|
|
||||||
canInvite: "Erstellung von Einladungscodes für diese Instanz"
|
canInvite: "Erstellung von Einladungscodes für diese Instanz"
|
||||||
inviteLimit: "Maximalanzahl an Einladungen"
|
inviteLimit: "Maximalanzahl an Einladungen"
|
||||||
inviteLimitCycle: "Zyklus des Einladungslimits"
|
inviteLimitCycle: "Zyklus des Einladungslimits"
|
||||||
|
@ -1704,12 +1616,9 @@ _role:
|
||||||
canSearchNotes: "Nutzung der Notizsuchfunktion"
|
canSearchNotes: "Nutzung der Notizsuchfunktion"
|
||||||
canUseTranslator: "Verwendung des Übersetzers"
|
canUseTranslator: "Verwendung des Übersetzers"
|
||||||
avatarDecorationLimit: "Maximale Anzahl an Profilbilddekorationen, die angebracht werden können"
|
avatarDecorationLimit: "Maximale Anzahl an Profilbilddekorationen, die angebracht werden können"
|
||||||
canImportAntennas: "Importieren von Antennen erlauben"
|
|
||||||
_condition:
|
_condition:
|
||||||
isLocal: "Lokaler Benutzer"
|
isLocal: "Lokaler Benutzer"
|
||||||
isRemote: "Benutzer fremder Instanz"
|
isRemote: "Benutzer fremder Instanz"
|
||||||
isCat: "Katzen-Benutzer"
|
|
||||||
isBot: "Bot-Benutzer"
|
|
||||||
createdLessThan: "Kontoerstellung liegt weniger als X zurück"
|
createdLessThan: "Kontoerstellung liegt weniger als X zurück"
|
||||||
createdMoreThan: "Kontoerstellung liegt mehr als X zurück"
|
createdMoreThan: "Kontoerstellung liegt mehr als X zurück"
|
||||||
followersLessThanOrEq: "Hat X oder weniger Follower"
|
followersLessThanOrEq: "Hat X oder weniger Follower"
|
||||||
|
@ -1925,12 +1834,6 @@ _sfx:
|
||||||
note: "Notizen"
|
note: "Notizen"
|
||||||
noteMy: "Meine Notizen"
|
noteMy: "Meine Notizen"
|
||||||
notification: "Benachrichtigungen"
|
notification: "Benachrichtigungen"
|
||||||
_soundSettings:
|
|
||||||
driveFile: "Audiodatei aus dem Drive verwenden"
|
|
||||||
driveFileWarn: "Wähle eine Audiodatei aus dem Drive"
|
|
||||||
driveFileTypeWarn: "Diese Datei wird nicht unterstützt"
|
|
||||||
driveFileTypeWarnDescription: "Bitte wähle eine Audiodatei"
|
|
||||||
driveFileDurationWarn: "Audio zu lang."
|
|
||||||
_ago:
|
_ago:
|
||||||
future: "Zukunft"
|
future: "Zukunft"
|
||||||
justNow: "Gerade eben"
|
justNow: "Gerade eben"
|
||||||
|
@ -2012,23 +1915,6 @@ _permissions:
|
||||||
"write:flash": "Deine Plays bearbeiten oder löschen"
|
"write:flash": "Deine Plays bearbeiten oder löschen"
|
||||||
"read:flash-likes": "Liste der Plays, die mir gefallen, lesen"
|
"read:flash-likes": "Liste der Plays, die mir gefallen, lesen"
|
||||||
"write:flash-likes": "Liste der Plays, die mir gefallen, bearbeiten"
|
"write:flash-likes": "Liste der Plays, die mir gefallen, bearbeiten"
|
||||||
"write:admin:delete-account": "Benutzerkonto löschen"
|
|
||||||
"write:admin:delete-all-files-of-a-user": "Alle Dateien eines Benutzers löschen"
|
|
||||||
"read:admin:index-stats": "Statistiken zu Datenbankindizes einsehen"
|
|
||||||
"read:admin:table-stats": "Statistiken zu Datenbanktabellen einsehen"
|
|
||||||
"read:admin:user-ips": "IP-Adressen von Benutzern anzeigen"
|
|
||||||
"read:admin:meta": "Metadaten der Instanz einsehen"
|
|
||||||
"write:admin:reset-password": "Benutzerpasswort zurücksetzen"
|
|
||||||
"write:admin:send-email": "E-Mail versenden"
|
|
||||||
"read:admin:server-info": "Serverinformationen anzeigen"
|
|
||||||
"read:admin:show-moderation-log": "Moderationsprotokoll einsehen"
|
|
||||||
"read:admin:show-user": "Private Benutzerinformationen einsehen"
|
|
||||||
"write:admin:invite-codes": "Einladungscodes verwalten"
|
|
||||||
"read:admin:invite-codes": "Einladungscodes anzeigen"
|
|
||||||
"write:admin:announcements": "Ankündigungen verwalten"
|
|
||||||
"read:admin:announcements": "Ankündigungen einsehen"
|
|
||||||
"write:admin:avatar-decorations": "Kann Avatar-Dekorationen verwalten"
|
|
||||||
"read:admin:avatar-decorations": "Avatar-Dekorationen ansehen"
|
|
||||||
_auth:
|
_auth:
|
||||||
shareAccessTitle: "Verteilung von App-Berechtigungen"
|
shareAccessTitle: "Verteilung von App-Berechtigungen"
|
||||||
shareAccess: "Möchtest du „{name}“ authorisieren, auf dieses Benutzerkonto zugreifen zu können?"
|
shareAccess: "Möchtest du „{name}“ authorisieren, auf dieses Benutzerkonto zugreifen zu können?"
|
||||||
|
@ -2443,31 +2329,3 @@ _reversi:
|
||||||
black: "Schwarz"
|
black: "Schwarz"
|
||||||
white: "Weiß"
|
white: "Weiß"
|
||||||
total: "Gesamt"
|
total: "Gesamt"
|
||||||
_offlineScreen:
|
|
||||||
header: "Verbindung zum Server nicht möglich"
|
|
||||||
_urlPreviewSetting:
|
|
||||||
title: "Einstellungen der URL-Vorschau"
|
|
||||||
enable: "URL-Vorschau aktivieren"
|
|
||||||
timeout: "Zeitüberschreitung beim Abrufen der Vorschau (ms)"
|
|
||||||
maximumContentLength: "Maximale Content-Length (Bytes)"
|
|
||||||
_mediaControls:
|
|
||||||
playbackRate: "Wiedergabegeschwindigkeit"
|
|
||||||
_contextMenu:
|
|
||||||
title: "Kontextmenü"
|
|
||||||
app: "Anwendung"
|
|
||||||
_embedCodeGen:
|
|
||||||
title: "Einbettungscode anpassen"
|
|
||||||
header: "Kopfzeile anzeigen"
|
|
||||||
autoload: "Automatisch mehr laden (veraltet)"
|
|
||||||
maxHeight: "Maximale Höhe"
|
|
||||||
maxHeightDescription: "Der Wert 0 deaktiviert die Einstellung der maximalen Höhe. Gib einen Wert an, um zu verhindern, dass das Widget weiterhin vertikal vergrößert wird."
|
|
||||||
maxHeightWarn: "Die Begrenzung der maximalen Höhe ist deaktiviert (0). Wenn dies nicht beabsichtigt war, setze die maximale Höhe auf einen Wert fest."
|
|
||||||
applyToPreview: "Auf die Vorschau anwenden"
|
|
||||||
generateCode: "Einbettungscode generieren"
|
|
||||||
codeGenerated: "Der Code wurde generiert"
|
|
||||||
codeGeneratedDescription: "Füge den generierten Code in deine Website ein, um den Inhalt einzubetten."
|
|
||||||
_selfXssPrevention:
|
|
||||||
warning: "WARNUNG"
|
|
||||||
title: "„Füge in diesen Bereich etwas ein“ ist eine Betrugsmasche."
|
|
||||||
description1: "Wenn du hier etwas einfügst, könnte ein böswilliger Benutzer dein Konto übernehmen oder deine persönlichen Daten stehlen."
|
|
||||||
description3: "Weitere Informationen findest du hier. {link}"
|
|
||||||
|
|
|
@ -382,6 +382,7 @@ enableLocalTimeline: "Enable local timeline"
|
||||||
enableGlobalTimeline: "Enable global timeline"
|
enableGlobalTimeline: "Enable global timeline"
|
||||||
disablingTimelinesInfo: "Adminstrators and Moderators will always have access to all timelines, even if they are not enabled."
|
disablingTimelinesInfo: "Adminstrators and Moderators will always have access to all timelines, even if they are not enabled."
|
||||||
registration: "Register"
|
registration: "Register"
|
||||||
|
enableRegistration: "Enable new user registration"
|
||||||
invite: "Invite"
|
invite: "Invite"
|
||||||
driveCapacityPerLocalAccount: "Drive capacity per local user"
|
driveCapacityPerLocalAccount: "Drive capacity per local user"
|
||||||
driveCapacityPerRemoteAccount: "Drive capacity per remote user"
|
driveCapacityPerRemoteAccount: "Drive capacity per remote user"
|
||||||
|
@ -1308,7 +1309,7 @@ _accountSettings:
|
||||||
makeNotesFollowersOnlyBeforeDescription: "While this feature is enabled, only followers can see notes past the set date and time or have been visible for a set time. When it is deactivated, the note publication status will also be restored."
|
makeNotesFollowersOnlyBeforeDescription: "While this feature is enabled, only followers can see notes past the set date and time or have been visible for a set time. When it is deactivated, the note publication status will also be restored."
|
||||||
makeNotesHiddenBefore: "Make past notes private"
|
makeNotesHiddenBefore: "Make past notes private"
|
||||||
makeNotesHiddenBeforeDescription: "While this feature is enabled, notes that are past the set date and time or have been visible only to you. When it is deactivated, the note publication status will also be restored."
|
makeNotesHiddenBeforeDescription: "While this feature is enabled, notes that are past the set date and time or have been visible only to you. When it is deactivated, the note publication status will also be restored."
|
||||||
mayNotEffectForFederatedNotes: "Notes federated to a remote server may not be affected."
|
mayNotEffectForFederatedNotes: "Notes federated to a remote server may not be effective."
|
||||||
notesHavePassedSpecifiedPeriod: "Note that the specified time has passed"
|
notesHavePassedSpecifiedPeriod: "Note that the specified time has passed"
|
||||||
notesOlderThanSpecifiedDateAndTime: "Notes before the specified date and time"
|
notesOlderThanSpecifiedDateAndTime: "Notes before the specified date and time"
|
||||||
_abuseUserReport:
|
_abuseUserReport:
|
||||||
|
|
|
@ -373,6 +373,7 @@ enableLocalTimeline: "Habilitar linea de tiempo local"
|
||||||
enableGlobalTimeline: "Habilitar linea de tiempo global"
|
enableGlobalTimeline: "Habilitar linea de tiempo global"
|
||||||
disablingTimelinesInfo: "Aunque se desactiven estas lineas de tiempo, por conveniencia el administrador y los moderadores pueden seguir usándolos"
|
disablingTimelinesInfo: "Aunque se desactiven estas lineas de tiempo, por conveniencia el administrador y los moderadores pueden seguir usándolos"
|
||||||
registration: "Registro"
|
registration: "Registro"
|
||||||
|
enableRegistration: "Permitir nuevos registros"
|
||||||
invite: "Invitar"
|
invite: "Invitar"
|
||||||
driveCapacityPerLocalAccount: "Capacidad del drive por usuario local"
|
driveCapacityPerLocalAccount: "Capacidad del drive por usuario local"
|
||||||
driveCapacityPerRemoteAccount: "Capacidad del drive por usuario remoto"
|
driveCapacityPerRemoteAccount: "Capacidad del drive por usuario remoto"
|
||||||
|
|
|
@ -8,9 +8,6 @@ search: "Rechercher"
|
||||||
notifications: "Notifications"
|
notifications: "Notifications"
|
||||||
username: "Nom d’utilisateur·rice"
|
username: "Nom d’utilisateur·rice"
|
||||||
password: "Mot de passe"
|
password: "Mot de passe"
|
||||||
initialPasswordForSetup: "Mot de passe initial pour la configuration"
|
|
||||||
initialPasswordIsIncorrect: "Mot de passe initial pour la configuration est incorrecte"
|
|
||||||
initialPasswordForSetupDescription: "Utilisez le mot de passe que vous avez entré pour le fichier de configuration si vous avez installé Misskey vous-même.\nSi vous utilisez un service d'hébergement Misskey, utilisez le mot de passe fourni.\nSi vous n'avez pas défini de mot de passe, laissez le champ vide pour continuer."
|
|
||||||
forgotPassword: "Mot de passe oublié"
|
forgotPassword: "Mot de passe oublié"
|
||||||
fetchingAsApObject: "Récupération depuis le fédiverse …"
|
fetchingAsApObject: "Récupération depuis le fédiverse …"
|
||||||
ok: "OK"
|
ok: "OK"
|
||||||
|
@ -63,7 +60,6 @@ copyFileId: "Copier l'identifiant du fichier"
|
||||||
copyFolderId: "Copier l'identifiant du dossier"
|
copyFolderId: "Copier l'identifiant du dossier"
|
||||||
copyProfileUrl: "Copier l'URL du profil"
|
copyProfileUrl: "Copier l'URL du profil"
|
||||||
searchUser: "Chercher un·e utilisateur·rice"
|
searchUser: "Chercher un·e utilisateur·rice"
|
||||||
searchThisUsersNotes: "Cherchez les notes de cet·te utilisateur·rice"
|
|
||||||
reply: "Répondre"
|
reply: "Répondre"
|
||||||
loadMore: "Afficher plus …"
|
loadMore: "Afficher plus …"
|
||||||
showMore: "Voir plus"
|
showMore: "Voir plus"
|
||||||
|
@ -112,7 +108,6 @@ enterEmoji: "Insérer un émoji"
|
||||||
renote: "Renoter"
|
renote: "Renoter"
|
||||||
unrenote: "Annuler la Renote"
|
unrenote: "Annuler la Renote"
|
||||||
renoted: "Renoté !"
|
renoted: "Renoté !"
|
||||||
renotedToX: "Renoté en {name}"
|
|
||||||
cantRenote: "Ce message ne peut pas être renoté."
|
cantRenote: "Ce message ne peut pas être renoté."
|
||||||
cantReRenote: "Impossible de renoter une Renote."
|
cantReRenote: "Impossible de renoter une Renote."
|
||||||
quote: "Citer"
|
quote: "Citer"
|
||||||
|
@ -156,7 +151,6 @@ editList: "Modifier la liste"
|
||||||
selectChannel: "Sélectionner un canal"
|
selectChannel: "Sélectionner un canal"
|
||||||
selectAntenna: "Sélectionner une antenne"
|
selectAntenna: "Sélectionner une antenne"
|
||||||
editAntenna: "Modifier l'antenne"
|
editAntenna: "Modifier l'antenne"
|
||||||
createAntenna: "Créer une antenne"
|
|
||||||
selectWidget: "Sélectionner un widget"
|
selectWidget: "Sélectionner un widget"
|
||||||
editWidgets: "Modifier les widgets"
|
editWidgets: "Modifier les widgets"
|
||||||
editWidgetsExit: "Valider les modifications"
|
editWidgetsExit: "Valider les modifications"
|
||||||
|
@ -183,7 +177,6 @@ addAccount: "Ajouter un compte"
|
||||||
reloadAccountsList: "Rafraichir la liste des comptes"
|
reloadAccountsList: "Rafraichir la liste des comptes"
|
||||||
loginFailed: "Échec de la connexion"
|
loginFailed: "Échec de la connexion"
|
||||||
showOnRemote: "Voir sur l’instance distante"
|
showOnRemote: "Voir sur l’instance distante"
|
||||||
continueOnRemote: "Continuer sur l'instance distante"
|
|
||||||
general: "Général"
|
general: "Général"
|
||||||
wallpaper: "Fond d’écran"
|
wallpaper: "Fond d’écran"
|
||||||
setWallpaper: "Définir le fond d’écran"
|
setWallpaper: "Définir le fond d’écran"
|
||||||
|
@ -194,7 +187,6 @@ followConfirm: "Êtes-vous sûr·e de vouloir suivre {name} ?"
|
||||||
proxyAccount: "Compte proxy"
|
proxyAccount: "Compte proxy"
|
||||||
proxyAccountDescription: "Un compte proxy se comporte, dans certaines conditions, comme un·e abonné·e distant·e pour les utilisateurs d'autres instances. Par exemple, quand un·e utilisateur·rice ajoute un·e utilisateur·rice distant·e à une liste, ses notes ne seront pas visibles sur l'instance si personne ne suit cet·te utilisateur·rice. Le compte proxy va donc suivre cet·te utilisateur·rice pour que ses notes soient acheminées."
|
proxyAccountDescription: "Un compte proxy se comporte, dans certaines conditions, comme un·e abonné·e distant·e pour les utilisateurs d'autres instances. Par exemple, quand un·e utilisateur·rice ajoute un·e utilisateur·rice distant·e à une liste, ses notes ne seront pas visibles sur l'instance si personne ne suit cet·te utilisateur·rice. Le compte proxy va donc suivre cet·te utilisateur·rice pour que ses notes soient acheminées."
|
||||||
host: "Serveur distant"
|
host: "Serveur distant"
|
||||||
selectSelf: "Sélectionner manuellement"
|
|
||||||
selectUser: "Sélectionner un·e utilisateur·rice"
|
selectUser: "Sélectionner un·e utilisateur·rice"
|
||||||
recipient: "Destinataire"
|
recipient: "Destinataire"
|
||||||
annotation: "Commentaires"
|
annotation: "Commentaires"
|
||||||
|
@ -328,7 +320,6 @@ renameFolder: "Renommer le dossier"
|
||||||
deleteFolder: "Supprimer le dossier"
|
deleteFolder: "Supprimer le dossier"
|
||||||
folder: "Dossier"
|
folder: "Dossier"
|
||||||
addFile: "Ajouter un fichier"
|
addFile: "Ajouter un fichier"
|
||||||
showFile: "Voir les fichiers"
|
|
||||||
emptyDrive: "Le Disque est vide"
|
emptyDrive: "Le Disque est vide"
|
||||||
emptyFolder: "Le dossier est vide"
|
emptyFolder: "Le dossier est vide"
|
||||||
unableToDelete: "Suppression impossible"
|
unableToDelete: "Suppression impossible"
|
||||||
|
@ -371,6 +362,7 @@ enableLocalTimeline: "Activer le fil local"
|
||||||
enableGlobalTimeline: "Activer le fil global"
|
enableGlobalTimeline: "Activer le fil global"
|
||||||
disablingTimelinesInfo: "Même si vous désactivez ces fils, les administrateur·rice·s et les modérateur·rice·s pourront toujours y accéder."
|
disablingTimelinesInfo: "Même si vous désactivez ces fils, les administrateur·rice·s et les modérateur·rice·s pourront toujours y accéder."
|
||||||
registration: "S’inscrire"
|
registration: "S’inscrire"
|
||||||
|
enableRegistration: "Autoriser les nouvelles inscriptions"
|
||||||
invite: "Inviter"
|
invite: "Inviter"
|
||||||
driveCapacityPerLocalAccount: "Capacité de stockage du Disque par utilisateur local"
|
driveCapacityPerLocalAccount: "Capacité de stockage du Disque par utilisateur local"
|
||||||
driveCapacityPerRemoteAccount: "Capacité de stockage du Disque par utilisateur distant"
|
driveCapacityPerRemoteAccount: "Capacité de stockage du Disque par utilisateur distant"
|
||||||
|
@ -438,11 +430,10 @@ token: "Jeton"
|
||||||
2fa: "Authentification à deux facteurs"
|
2fa: "Authentification à deux facteurs"
|
||||||
setupOf2fa: "Configuration de l’authentification à deux facteurs"
|
setupOf2fa: "Configuration de l’authentification à deux facteurs"
|
||||||
totp: "Application d'authentification"
|
totp: "Application d'authentification"
|
||||||
totpDescription: "Entrer un mot de passe à usage unique à l'aide d'une application d'authentification"
|
totpDescription: "Entrez un mot de passe à usage unique à l'aide d'une application d'authentification"
|
||||||
moderator: "Modérateur·rice·s"
|
moderator: "Modérateur·rice·s"
|
||||||
moderation: "Modérations"
|
moderation: "Modérations"
|
||||||
moderationNote: "Note de modération"
|
moderationNote: "Note de modération"
|
||||||
moderationNoteDescription: "Vous pouvez remplir des notes qui seront partagés seulement entre modérateurs."
|
|
||||||
addModerationNote: "Ajouter une note de modération"
|
addModerationNote: "Ajouter une note de modération"
|
||||||
moderationLogs: "Journal de modération"
|
moderationLogs: "Journal de modération"
|
||||||
nUsersMentioned: "{n} utilisateur·rice·s mentionné·e·s"
|
nUsersMentioned: "{n} utilisateur·rice·s mentionné·e·s"
|
||||||
|
@ -502,10 +493,6 @@ uiLanguage: "Langue d’affichage de l’interface"
|
||||||
aboutX: "À propos de {x}"
|
aboutX: "À propos de {x}"
|
||||||
emojiStyle: "Style des émojis"
|
emojiStyle: "Style des émojis"
|
||||||
native: "Natif"
|
native: "Natif"
|
||||||
menuStyle: "Style du menu"
|
|
||||||
style: "Style"
|
|
||||||
drawer: "Sélecteur"
|
|
||||||
popup: "Pop-up"
|
|
||||||
showNoteActionsOnlyHover: "Afficher les actions de note uniquement au survol"
|
showNoteActionsOnlyHover: "Afficher les actions de note uniquement au survol"
|
||||||
showReactionsCount: "Afficher le nombre de réactions des notes"
|
showReactionsCount: "Afficher le nombre de réactions des notes"
|
||||||
noHistory: "Pas d'historique"
|
noHistory: "Pas d'historique"
|
||||||
|
@ -588,7 +575,6 @@ ascendingOrder: "Ascendant"
|
||||||
descendingOrder: "Descendant"
|
descendingOrder: "Descendant"
|
||||||
scratchpad: "ScratchPad"
|
scratchpad: "ScratchPad"
|
||||||
scratchpadDescription: "ScratchPad fournit un environnement expérimental pour AiScript. Vous pouvez vérifier la rédaction de votre code, sa bonne exécution et le résultat de son interaction avec Misskey."
|
scratchpadDescription: "ScratchPad fournit un environnement expérimental pour AiScript. Vous pouvez vérifier la rédaction de votre code, sa bonne exécution et le résultat de son interaction avec Misskey."
|
||||||
uiInspector: "Inspecteur UI"
|
|
||||||
output: "Sortie"
|
output: "Sortie"
|
||||||
script: "Script"
|
script: "Script"
|
||||||
disablePagesScript: "Désactiver AiScript sur les Pages"
|
disablePagesScript: "Désactiver AiScript sur les Pages"
|
||||||
|
@ -632,7 +618,7 @@ description: "Description"
|
||||||
describeFile: "Ajouter une description d'image"
|
describeFile: "Ajouter une description d'image"
|
||||||
enterFileDescription: "Saisissez une description"
|
enterFileDescription: "Saisissez une description"
|
||||||
author: "Auteur·rice"
|
author: "Auteur·rice"
|
||||||
leaveConfirm: "Vous avez des modifications non sauvegardées. Voulez-vous les ignorer ?"
|
leaveConfirm: "Vous avez des modifications non-sauvegardées. Voulez-vous les ignorer ?"
|
||||||
manage: "Gestion"
|
manage: "Gestion"
|
||||||
plugins: "Extensions"
|
plugins: "Extensions"
|
||||||
preferencesBackups: "Sauvegarder les paramètres"
|
preferencesBackups: "Sauvegarder les paramètres"
|
||||||
|
@ -842,7 +828,6 @@ administration: "Gestion"
|
||||||
accounts: "Comptes"
|
accounts: "Comptes"
|
||||||
switch: "Remplacer"
|
switch: "Remplacer"
|
||||||
noMaintainerInformationWarning: "Informations administrateur non configurées."
|
noMaintainerInformationWarning: "Informations administrateur non configurées."
|
||||||
noInquiryUrlWarning: "L'URL demandé n'est pas définie"
|
|
||||||
noBotProtectionWarning: "La protection contre les bots n'est pas configurée."
|
noBotProtectionWarning: "La protection contre les bots n'est pas configurée."
|
||||||
configure: "Configurer"
|
configure: "Configurer"
|
||||||
postToGallery: "Publier dans la galerie"
|
postToGallery: "Publier dans la galerie"
|
||||||
|
@ -907,7 +892,6 @@ followersVisibility: "Visibilité des abonnés"
|
||||||
continueThread: "Afficher la suite du fil"
|
continueThread: "Afficher la suite du fil"
|
||||||
deleteAccountConfirm: "Votre compte sera supprimé. Êtes vous certain ?"
|
deleteAccountConfirm: "Votre compte sera supprimé. Êtes vous certain ?"
|
||||||
incorrectPassword: "Le mot de passe est incorrect."
|
incorrectPassword: "Le mot de passe est incorrect."
|
||||||
incorrectTotp: "Le mot de passe à usage unique est incorrect ou a expiré."
|
|
||||||
voteConfirm: "Confirmez-vous votre vote pour « {choice} » ?"
|
voteConfirm: "Confirmez-vous votre vote pour « {choice} » ?"
|
||||||
hide: "Masquer"
|
hide: "Masquer"
|
||||||
useDrawerReactionPickerForMobile: "Afficher le sélecteur de réactions en tant que panneau sur mobile"
|
useDrawerReactionPickerForMobile: "Afficher le sélecteur de réactions en tant que panneau sur mobile"
|
||||||
|
@ -932,9 +916,6 @@ oneHour: "1 heure"
|
||||||
oneDay: "1 jour"
|
oneDay: "1 jour"
|
||||||
oneWeek: "1 semaine"
|
oneWeek: "1 semaine"
|
||||||
oneMonth: "Un mois"
|
oneMonth: "Un mois"
|
||||||
threeMonths: "3 mois"
|
|
||||||
oneYear: "1 an"
|
|
||||||
threeDays: "3 jours"
|
|
||||||
reflectMayTakeTime: "Cela peut prendre un certain temps avant que cela ne se termine."
|
reflectMayTakeTime: "Cela peut prendre un certain temps avant que cela ne se termine."
|
||||||
failedToFetchAccountInformation: "Impossible de récupérer les informations du compte."
|
failedToFetchAccountInformation: "Impossible de récupérer les informations du compte."
|
||||||
rateLimitExceeded: "Limite de taux dépassée"
|
rateLimitExceeded: "Limite de taux dépassée"
|
||||||
|
@ -942,7 +923,7 @@ cropImage: "Recadrer l'image"
|
||||||
cropImageAsk: "Voulez-vous recadrer cette image ?"
|
cropImageAsk: "Voulez-vous recadrer cette image ?"
|
||||||
cropYes: "Rogner"
|
cropYes: "Rogner"
|
||||||
cropNo: "Utiliser en l'état"
|
cropNo: "Utiliser en l'état"
|
||||||
file: "Fichier"
|
file: "Fichiers"
|
||||||
recentNHours: "Dernières {n} heures"
|
recentNHours: "Dernières {n} heures"
|
||||||
recentNDays: "Derniers {n} jours"
|
recentNDays: "Derniers {n} jours"
|
||||||
noEmailServerWarning: "Serveur de courrier non configuré."
|
noEmailServerWarning: "Serveur de courrier non configuré."
|
||||||
|
@ -1074,7 +1055,6 @@ retryAllQueuesConfirmTitle: "Vraiment réessayer ?"
|
||||||
retryAllQueuesConfirmText: "Cela peut augmenter temporairement la charge du serveur."
|
retryAllQueuesConfirmText: "Cela peut augmenter temporairement la charge du serveur."
|
||||||
enableChartsForRemoteUser: "Générer les graphiques pour les utilisateurs distants"
|
enableChartsForRemoteUser: "Générer les graphiques pour les utilisateurs distants"
|
||||||
enableChartsForFederatedInstances: "Générer les graphiques pour les instances distantes"
|
enableChartsForFederatedInstances: "Générer les graphiques pour les instances distantes"
|
||||||
enableStatsForFederatedInstances: "Recevoir les statistiques des instances distantes"
|
|
||||||
showClipButtonInNoteFooter: "Ajouter « Clip » au menu d'action de la note"
|
showClipButtonInNoteFooter: "Ajouter « Clip » au menu d'action de la note"
|
||||||
reactionsDisplaySize: "Taille de l'affichage des réactions"
|
reactionsDisplaySize: "Taille de l'affichage des réactions"
|
||||||
limitWidthOfReaction: "Limiter la largeur maximale des réactions et les afficher en taille réduite"
|
limitWidthOfReaction: "Limiter la largeur maximale des réactions et les afficher en taille réduite"
|
||||||
|
@ -1122,8 +1102,6 @@ preventAiLearning: "Refuser l'usage dans l'apprentissage automatique d'IA géné
|
||||||
preventAiLearningDescription: "Demander aux robots d'indexation de ne pas utiliser le contenu publié, tel que les notes et les images, dans l'apprentissage automatique d'IA générative. Cela est réalisé en incluant le drapeau « noai » dans la réponse HTML. Une prévention complète n'est toutefois pas possible, car il est au robot d'indexation de respecter cette demande."
|
preventAiLearningDescription: "Demander aux robots d'indexation de ne pas utiliser le contenu publié, tel que les notes et les images, dans l'apprentissage automatique d'IA générative. Cela est réalisé en incluant le drapeau « noai » dans la réponse HTML. Une prévention complète n'est toutefois pas possible, car il est au robot d'indexation de respecter cette demande."
|
||||||
options: "Options"
|
options: "Options"
|
||||||
specifyUser: "Spécifier l'utilisateur·rice"
|
specifyUser: "Spécifier l'utilisateur·rice"
|
||||||
openTagPageConfirm: "Ouvrir une page d'hashtags ?"
|
|
||||||
specifyHost: "Spécifier un serveur distant"
|
|
||||||
failedToPreviewUrl: "Aperçu d'URL échoué"
|
failedToPreviewUrl: "Aperçu d'URL échoué"
|
||||||
update: "Mettre à jour"
|
update: "Mettre à jour"
|
||||||
rolesThatCanBeUsedThisEmojiAsReaction: "Rôles qui peuvent utiliser cet émoji comme réaction"
|
rolesThatCanBeUsedThisEmojiAsReaction: "Rôles qui peuvent utiliser cet émoji comme réaction"
|
||||||
|
@ -1244,55 +1222,13 @@ enableHorizontalSwipe: "Glisser pour changer d'onglet"
|
||||||
loading: "Chargement en cours"
|
loading: "Chargement en cours"
|
||||||
surrender: "Annuler"
|
surrender: "Annuler"
|
||||||
gameRetry: "Réessayer"
|
gameRetry: "Réessayer"
|
||||||
notUsePleaseLeaveBlank: "Laisser vide si non utilisé"
|
|
||||||
useTotp: "Entrer un mot de passe à usage unique"
|
|
||||||
useBackupCode: "Utiliser le codes de secours"
|
|
||||||
launchApp: "Lancer l'app"
|
launchApp: "Lancer l'app"
|
||||||
useNativeUIForVideoAudioPlayer: "Lire les vidéos et audios en utilisant l'UI du navigateur"
|
|
||||||
keepOriginalFilename: "Garder le nom original du fichier"
|
|
||||||
keepOriginalFilenameDescription: "Si vous désactivez ce paramètre, les noms de fichiers seront automatiquement remplacés par des noms aléatoires lorsque vous téléchargerez des fichiers."
|
|
||||||
noDescription: "Il n'y a pas de description"
|
|
||||||
alwaysConfirmFollow: "Confirmer lors d'un abonnement"
|
|
||||||
inquiry: "Contact"
|
inquiry: "Contact"
|
||||||
tryAgain: "Veuillez réessayer plus tard"
|
|
||||||
confirmWhenRevealingSensitiveMedia: "Confirmer pour révéler du contenu sensible"
|
|
||||||
sensitiveMediaRevealConfirm: "Ceci pourrait être du contenu sensible. Voulez-vous l'afficher ?"
|
|
||||||
createdLists: "Listes créées"
|
|
||||||
createdAntennas: "Antennes créées"
|
|
||||||
fromX: "De {x}"
|
|
||||||
genEmbedCode: "Générer le code d'intégration"
|
|
||||||
noteOfThisUser: "Notes de cet·te utilisateur·rice"
|
|
||||||
clipNoteLimitExceeded: "Aucune note supplémentaire ne peut être ajoutée à ce clip."
|
|
||||||
performance: "Performance"
|
|
||||||
modified: "Modifié"
|
|
||||||
discard: "Annuler"
|
|
||||||
thereAreNChanges: "Il y a {n} modification(s)"
|
|
||||||
signinWithPasskey: "Se connecter avec une clé d'accès"
|
|
||||||
unknownWebAuthnKey: "Clé d'accès inconnue."
|
|
||||||
passkeyVerificationFailed: "La vérification de la clé d'accès a échoué."
|
|
||||||
passkeyVerificationSucceededButPasswordlessLoginDisabled: "La vérification de la clé d'accès a réussi, mais la connexion sans mot de passe est désactivée."
|
|
||||||
messageToFollower: "Message aux abonné·es"
|
|
||||||
target: "Destinataire"
|
|
||||||
prohibitedWordsForNameOfUser: "Mots interdits pour les noms d'utilisateur·rices"
|
|
||||||
lockdown: "Verrouiller"
|
|
||||||
pleaseSelectAccount: "Sélectionner un compte"
|
|
||||||
availableRoles: "Rôles disponibles"
|
|
||||||
_abuseUserReport:
|
|
||||||
forward: "Transférer"
|
|
||||||
forwardDescription: "Transférer le signalement vers une instance distante en tant qu'anonyme."
|
|
||||||
resolve: "Résoudre"
|
|
||||||
accept: "Accepter"
|
|
||||||
reject: "Rejeter"
|
|
||||||
resolveTutorial: "Si le signalement est légitime dans son contenu, sélectionnez « Accepter » pour marquer le cas comme résolu par l'affirmative.\nSi le contenu du rapport n'est pas légitime, sélectionnez « Rejeter » pour marquer le cas comme résolu par la négative."
|
|
||||||
_delivery:
|
_delivery:
|
||||||
status: "Statut de la diffusion"
|
status: "Statut de la diffusion"
|
||||||
stop: "Suspendu·e"
|
stop: "Suspendu·e"
|
||||||
resume: "Reprendre"
|
|
||||||
_type:
|
_type:
|
||||||
none: "Publié"
|
none: "Publié"
|
||||||
manuallySuspended: "Suspendre manuellement"
|
|
||||||
goneSuspended: "L'instance est suspendue en raison de la suppression de ce dernier"
|
|
||||||
autoSuspendedForNotResponding: "L'instance est suspendue car elle ne répond pas"
|
|
||||||
_bubbleGame:
|
_bubbleGame:
|
||||||
howToPlay: "Comment jouer"
|
howToPlay: "Comment jouer"
|
||||||
hold: "Réserver"
|
hold: "Réserver"
|
||||||
|
@ -1303,7 +1239,6 @@ _bubbleGame:
|
||||||
maxChain: "Nombre maximum de chaînes"
|
maxChain: "Nombre maximum de chaînes"
|
||||||
yen: "{yen} yens"
|
yen: "{yen} yens"
|
||||||
estimatedQty: "{qty} pièces"
|
estimatedQty: "{qty} pièces"
|
||||||
scoreSweets: "{onigiriQtyWithUnit} Onigiri(s)"
|
|
||||||
_announcement:
|
_announcement:
|
||||||
forExistingUsers: "Pour les utilisateurs existants seulement"
|
forExistingUsers: "Pour les utilisateurs existants seulement"
|
||||||
needConfirmationToRead: "Exiger la confirmation de la lecture"
|
needConfirmationToRead: "Exiger la confirmation de la lecture"
|
||||||
|
@ -1323,7 +1258,6 @@ _initialAccountSetting:
|
||||||
profileSetting: "Paramètres du profil"
|
profileSetting: "Paramètres du profil"
|
||||||
privacySetting: "Paramètres de confidentialité"
|
privacySetting: "Paramètres de confidentialité"
|
||||||
initialAccountSettingCompleted: "Configuration du profil terminée avec succès !"
|
initialAccountSettingCompleted: "Configuration du profil terminée avec succès !"
|
||||||
haveFun: "Profitez de {name} !"
|
|
||||||
youCanContinueTutorial: "Vous pouvez procéder au tutoriel sur l'utilisation de {name}(Misskey) ou vous arrêter ici et commencer à l'utiliser immédiatement."
|
youCanContinueTutorial: "Vous pouvez procéder au tutoriel sur l'utilisation de {name}(Misskey) ou vous arrêter ici et commencer à l'utiliser immédiatement."
|
||||||
startTutorial: "Démarrer le tutoriel"
|
startTutorial: "Démarrer le tutoriel"
|
||||||
skipAreYouSure: "Désirez-vous ignorer la configuration du profil ?"
|
skipAreYouSure: "Désirez-vous ignorer la configuration du profil ?"
|
||||||
|
@ -1417,60 +1351,18 @@ _achievements:
|
||||||
flavor: "Passez un bon moment avec Misskey !"
|
flavor: "Passez un bon moment avec Misskey !"
|
||||||
_notes10:
|
_notes10:
|
||||||
title: "Quelques notes"
|
title: "Quelques notes"
|
||||||
description: "Poster 10 notes"
|
|
||||||
_notes100:
|
_notes100:
|
||||||
title: "Beaucoup de notes"
|
title: "Beaucoup de notes"
|
||||||
description: "Poster 100 notes"
|
|
||||||
_notes500:
|
|
||||||
title: "Couvert de notes"
|
|
||||||
description: "Poster 500 notes"
|
|
||||||
_notes1000:
|
|
||||||
title: "Une montagne de notes"
|
|
||||||
description: "Poster 1000 notes"
|
|
||||||
_notes5000:
|
|
||||||
title: "Débordement de notes"
|
|
||||||
description: "Poster 5 000 notes"
|
|
||||||
_notes10000:
|
|
||||||
title: "Super note"
|
|
||||||
description: "Poster 10 000 notes"
|
|
||||||
_notes20000:
|
|
||||||
title: "Encore... plus... de... notes..."
|
|
||||||
description: "Poster 20 000 notes"
|
|
||||||
_notes30000:
|
|
||||||
title: "Notes notes notes !"
|
|
||||||
description: "Poster 30 000 notes"
|
|
||||||
_notes40000:
|
|
||||||
title: "Usine de notes"
|
|
||||||
description: "Poster 40 000 notes"
|
|
||||||
_notes50000:
|
|
||||||
title: "Planète des notes"
|
|
||||||
description: "Poster 50 000 notes"
|
|
||||||
_notes60000:
|
|
||||||
title: "Quasar de note"
|
|
||||||
description: "Poster 50 000 notes"
|
|
||||||
_notes70000:
|
|
||||||
title: "Trou noir de notes"
|
|
||||||
description: "Poster 70 000 notes"
|
|
||||||
_notes80000:
|
|
||||||
title: "Galaxie de notes"
|
|
||||||
description: "Poster 80 000 notes"
|
|
||||||
_notes90000:
|
|
||||||
title: "Univers de notes"
|
|
||||||
description: "Poster 90 000 notes"
|
|
||||||
_notes100000:
|
_notes100000:
|
||||||
title: "ALL YOUR NOTE ARE BELONG TO US"
|
title: "ALL YOUR NOTE ARE BELONG TO US"
|
||||||
description: "Poster 100 000 notes"
|
|
||||||
flavor: "Avez-vous tant de choses à dire ?"
|
|
||||||
_login3:
|
_login3:
|
||||||
title: "Débutant I"
|
title: "Débutant Ⅰ"
|
||||||
description: "Se connecter pour un total de 3 jours"
|
description: "Se connecter pour un total de 3 jours"
|
||||||
flavor: "Dès maintenant, appelez-moi Misskeynaute"
|
|
||||||
_login7:
|
_login7:
|
||||||
title: "Débutant II"
|
title: "Débutant Ⅱ"
|
||||||
description: "Se connecter pour un total de 7 jours"
|
description: "Se connecter pour un total de 7 jours"
|
||||||
flavor: "On s'habitue ?"
|
|
||||||
_login15:
|
_login15:
|
||||||
title: "Débutant III"
|
title: "Débutant Ⅲ"
|
||||||
description: "Se connecter pour un total de 15 jours"
|
description: "Se connecter pour un total de 15 jours"
|
||||||
_login30:
|
_login30:
|
||||||
title: "Misskeynaute I"
|
title: "Misskeynaute I"
|
||||||
|
@ -1494,7 +1386,6 @@ _achievements:
|
||||||
_login500:
|
_login500:
|
||||||
title: "Expert I"
|
title: "Expert I"
|
||||||
description: "Se connecter pour un total de 500 jours"
|
description: "Se connecter pour un total de 500 jours"
|
||||||
flavor: "Non, mes amis, j'aime les notes"
|
|
||||||
_login600:
|
_login600:
|
||||||
title: "Expert II"
|
title: "Expert II"
|
||||||
description: "Se connecter pour un total de 600 jours"
|
description: "Se connecter pour un total de 600 jours"
|
||||||
|
@ -1502,18 +1393,11 @@ _achievements:
|
||||||
title: "Expert III"
|
title: "Expert III"
|
||||||
description: "Se connecter pour un total de 700 jours"
|
description: "Se connecter pour un total de 700 jours"
|
||||||
_login800:
|
_login800:
|
||||||
title: "Maître des notes I"
|
|
||||||
description: "Se connecter pour un total de 800 jours"
|
description: "Se connecter pour un total de 800 jours"
|
||||||
_login900:
|
_login900:
|
||||||
title: "Maître des notes II"
|
|
||||||
description: "Se connecter pour un total de 900 jours"
|
description: "Se connecter pour un total de 900 jours"
|
||||||
_login1000:
|
_login1000:
|
||||||
title: "Maître des notes III"
|
|
||||||
description: "Se connecter pour un total de 1 000 jours"
|
|
||||||
flavor: "Merci d'utiliser Misskey !"
|
flavor: "Merci d'utiliser Misskey !"
|
||||||
_noteClipped1:
|
|
||||||
title: "Je... dois... clip..."
|
|
||||||
description: "Ajouter sa première note aux clips"
|
|
||||||
_profileFilled:
|
_profileFilled:
|
||||||
title: "Bien préparé"
|
title: "Bien préparé"
|
||||||
description: "Configuration de votre profil"
|
description: "Configuration de votre profil"
|
||||||
|
@ -1572,31 +1456,21 @@ _achievements:
|
||||||
_driveFolderCircularReference:
|
_driveFolderCircularReference:
|
||||||
title: "Référence circulaire"
|
title: "Référence circulaire"
|
||||||
_setNameToSyuilo:
|
_setNameToSyuilo:
|
||||||
title: "Complexe de dieu"
|
|
||||||
description: "Vous avez spécifié « syuilo » comme nom"
|
description: "Vous avez spécifié « syuilo » comme nom"
|
||||||
_passedSinceAccountCreated1:
|
_passedSinceAccountCreated1:
|
||||||
title: "Premier anniversaire"
|
title: "Premier anniversaire"
|
||||||
description: "Un an est passé depuis la création du compte"
|
|
||||||
_passedSinceAccountCreated2:
|
_passedSinceAccountCreated2:
|
||||||
title: "Second anniversaire"
|
title: "Second anniversaire"
|
||||||
description: "Deux ans sont passés depuis la création du compte"
|
|
||||||
_passedSinceAccountCreated3:
|
_passedSinceAccountCreated3:
|
||||||
title: "3ème anniversaire"
|
title: "3ème anniversaire"
|
||||||
description: "Trois ans sont passés depuis la création du compte"
|
|
||||||
_loggedInOnBirthday:
|
_loggedInOnBirthday:
|
||||||
title: "Joyeux Anniversaire !"
|
title: "Joyeux Anniversaire !"
|
||||||
description: "Vous vous êtes connecté à la date de votre anniversaire"
|
description: "Vous vous êtes connecté à la date de votre anniversaire"
|
||||||
_loggedInOnNewYearsDay:
|
_loggedInOnNewYearsDay:
|
||||||
title: "Bonne année !"
|
title: "Bonne année !"
|
||||||
description: "Vous vous êtes connecté le premier jour de l'année"
|
|
||||||
flavor: "Merci pour le soutient continue sur cette instance."
|
|
||||||
_cookieClicked:
|
_cookieClicked:
|
||||||
title: "Jeu de clic sur des cookies"
|
|
||||||
description: "Cliqué sur un cookie"
|
|
||||||
flavor: "Attendez une minute, vous êtes sur le mauvais site web ?"
|
flavor: "Attendez une minute, vous êtes sur le mauvais site web ?"
|
||||||
_brainDiver:
|
_brainDiver:
|
||||||
title: "Brain Diver"
|
|
||||||
description: "Poster le lien sur Brain Diver"
|
|
||||||
flavor: "Misskey-Misskey La-Tu-Ma"
|
flavor: "Misskey-Misskey La-Tu-Ma"
|
||||||
_smashTestNotificationButton:
|
_smashTestNotificationButton:
|
||||||
title: "Débordement de tests"
|
title: "Débordement de tests"
|
||||||
|
@ -1604,11 +1478,6 @@ _achievements:
|
||||||
_tutorialCompleted:
|
_tutorialCompleted:
|
||||||
title: "Diplôme de la course élémentaire de Misskey"
|
title: "Diplôme de la course élémentaire de Misskey"
|
||||||
description: "Terminer le tutoriel"
|
description: "Terminer le tutoriel"
|
||||||
_bubbleGameExplodingHead:
|
|
||||||
title: "🤯"
|
|
||||||
description: "Le plus gros objet du jeu de bulles"
|
|
||||||
_bubbleGameDoubleExplodingHead:
|
|
||||||
title: "Double🤯"
|
|
||||||
_role:
|
_role:
|
||||||
new: "Nouveau rôle"
|
new: "Nouveau rôle"
|
||||||
edit: "Modifier le rôle"
|
edit: "Modifier le rôle"
|
||||||
|
@ -1639,11 +1508,9 @@ _role:
|
||||||
canManageCustomEmojis: "Gestion des émojis personnalisés"
|
canManageCustomEmojis: "Gestion des émojis personnalisés"
|
||||||
canManageAvatarDecorations: "Gestion des décorations d'avatar"
|
canManageAvatarDecorations: "Gestion des décorations d'avatar"
|
||||||
driveCapacity: "Capacité de stockage du Disque"
|
driveCapacity: "Capacité de stockage du Disque"
|
||||||
antennaMax: "Nombre maximum d'antennes"
|
|
||||||
wordMuteMax: "Nombre maximal de caractères dans le filtre de mots"
|
wordMuteMax: "Nombre maximal de caractères dans le filtre de mots"
|
||||||
canUseTranslator: "Usage de la fonctionnalité de traduction"
|
canUseTranslator: "Usage de la fonctionnalité de traduction"
|
||||||
avatarDecorationLimit: "Nombre maximal de décorations d'avatar"
|
avatarDecorationLimit: "Nombre maximal de décorations d'avatar"
|
||||||
canImportAntennas: "Autoriser l'importation d'antennes"
|
|
||||||
_sensitiveMediaDetection:
|
_sensitiveMediaDetection:
|
||||||
description: "L'apprentissage automatique peut être utilisé pour détecter automatiquement les médias sensibles à modérer. La sollicitation des serveurs augmente légèrement."
|
description: "L'apprentissage automatique peut être utilisé pour détecter automatiquement les médias sensibles à modérer. La sollicitation des serveurs augmente légèrement."
|
||||||
sensitivity: "Sensibilité de la détection"
|
sensitivity: "Sensibilité de la détection"
|
||||||
|
@ -1926,29 +1793,6 @@ _permissions:
|
||||||
"write:gallery": "Éditer la galerie"
|
"write:gallery": "Éditer la galerie"
|
||||||
"read:gallery-likes": "Voir les mentions « J'aime » dans la galerie"
|
"read:gallery-likes": "Voir les mentions « J'aime » dans la galerie"
|
||||||
"write:gallery-likes": "Gérer les mentions « J'aime » dans la galerie"
|
"write:gallery-likes": "Gérer les mentions « J'aime » dans la galerie"
|
||||||
"read:flash": "Voir le Play"
|
|
||||||
"write:flash": "Modifier le Play"
|
|
||||||
"read:flash-likes": "Lire vos mentions j'aime des Play"
|
|
||||||
"write:flash-likes": "Modifier vos mentions j'aime des Play"
|
|
||||||
"read:admin:abuse-user-reports": "Voir les utilisateurs signalés"
|
|
||||||
"write:admin:delete-account": "Supprimer le compte d'utilisateur"
|
|
||||||
"write:admin:delete-all-files-of-a-user": "Supprimer tous les fichiers d'un utilisateur"
|
|
||||||
"read:admin:index-stats": "Voir les statistiques sur les index de base de données"
|
|
||||||
"read:admin:table-stats": "Voir les statistiques sur les index de base de données"
|
|
||||||
"read:admin:user-ips": "Voir l'adresse IP de l'utilisateur"
|
|
||||||
"read:admin:meta": "Voir les métadonnées de l'instance"
|
|
||||||
"write:admin:reset-password": "Réinitialiser le mot de passe de l'utilisateur"
|
|
||||||
"write:admin:resolve-abuse-user-report": "Résoudre le signalement d'un utilisateur"
|
|
||||||
"write:admin:send-email": "Envoyer un mail"
|
|
||||||
"read:admin:server-info": "Voir les informations de l'instance"
|
|
||||||
"read:admin:show-moderation-log": "Voir les logs de modération"
|
|
||||||
"read:admin:show-user": "Voir les informations privées de l'utilisateur"
|
|
||||||
"write:admin:suspend-user": "Suspendre l'utilisateur"
|
|
||||||
"write:admin:unset-user-avatar": "Retirer l'avatar de l'utilisateur"
|
|
||||||
"write:admin:unset-user-banner": "Retirer la bannière de l'utilisateur"
|
|
||||||
"write:admin:unsuspend-user": "Lever la suspension d'un utilisateur"
|
|
||||||
"write:admin:meta": "Gérer les métadonnées de l'instance"
|
|
||||||
"write:admin:roles": "Gérer les rôles"
|
|
||||||
_auth:
|
_auth:
|
||||||
shareAccess: "Autoriser \"{name}\" à accéder à votre compte ?"
|
shareAccess: "Autoriser \"{name}\" à accéder à votre compte ?"
|
||||||
shareAccessAsk: "Voulez-vous vraiment autoriser cette application à accéder à votre compte?"
|
shareAccessAsk: "Voulez-vous vraiment autoriser cette application à accéder à votre compte?"
|
||||||
|
@ -2100,16 +1944,7 @@ _timelines:
|
||||||
social: "Social"
|
social: "Social"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
_play:
|
_play:
|
||||||
new: "Créer un Play"
|
|
||||||
edit: "Modifier un Play"
|
|
||||||
created: "Play créé"
|
|
||||||
updated: "Play édité"
|
|
||||||
deleted: "Play supprimé"
|
|
||||||
pageSetting: "Configuration du Play"
|
|
||||||
editThisPage: "Modifier ce Play"
|
|
||||||
viewSource: "Afficher la source"
|
viewSource: "Afficher la source"
|
||||||
my: "Mes Play"
|
|
||||||
liked: "Play aimés"
|
|
||||||
featured: "Populaire"
|
featured: "Populaire"
|
||||||
title: "Titre"
|
title: "Titre"
|
||||||
script: "Script"
|
script: "Script"
|
||||||
|
@ -2183,13 +2018,10 @@ _notification:
|
||||||
achievementEarned: "Accomplissement déverrouillé"
|
achievementEarned: "Accomplissement déverrouillé"
|
||||||
testNotification: "Tester la notification"
|
testNotification: "Tester la notification"
|
||||||
reactedBySomeUsers: "{n} utilisateur·rice·s ont réagi"
|
reactedBySomeUsers: "{n} utilisateur·rice·s ont réagi"
|
||||||
likedBySomeUsers: "{n} utilisateurs ont aimé votre note"
|
|
||||||
renotedBySomeUsers: "{n} utilisateur·rice·s ont renoté"
|
renotedBySomeUsers: "{n} utilisateur·rice·s ont renoté"
|
||||||
followedBySomeUsers: "{n} utilisateur·rice·s se sont abonné·e·s à vous"
|
followedBySomeUsers: "{n} utilisateur·rice·s se sont abonné·e·s à vous"
|
||||||
login: "Quelqu'un s'est connecté"
|
|
||||||
_types:
|
_types:
|
||||||
all: "Toutes"
|
all: "Toutes"
|
||||||
note: "Nouvelles notes"
|
|
||||||
follow: "Nouvel·le abonné·e"
|
follow: "Nouvel·le abonné·e"
|
||||||
mention: "Mentions"
|
mention: "Mentions"
|
||||||
reply: "Réponses"
|
reply: "Réponses"
|
||||||
|
@ -2239,14 +2071,11 @@ _drivecleaner:
|
||||||
orderByCreatedAtAsc: "Date d'ajout ascendante"
|
orderByCreatedAtAsc: "Date d'ajout ascendante"
|
||||||
_webhookSettings:
|
_webhookSettings:
|
||||||
name: "Nom"
|
name: "Nom"
|
||||||
secret: "Secret"
|
|
||||||
trigger: "Activateur"
|
|
||||||
active: "Activé"
|
active: "Activé"
|
||||||
_abuseReport:
|
_abuseReport:
|
||||||
_notificationRecipient:
|
_notificationRecipient:
|
||||||
_recipientType:
|
_recipientType:
|
||||||
mail: "E-mail "
|
mail: "E-mail "
|
||||||
keywords: "Mots clés "
|
|
||||||
_moderationLogTypes:
|
_moderationLogTypes:
|
||||||
createRole: "Rôle créé"
|
createRole: "Rôle créé"
|
||||||
deleteRole: "Rôle supprimé"
|
deleteRole: "Rôle supprimé"
|
||||||
|
@ -2283,7 +2112,6 @@ _moderationLogTypes:
|
||||||
deleteAvatarDecoration: "Décoration d'avatar supprimée"
|
deleteAvatarDecoration: "Décoration d'avatar supprimée"
|
||||||
unsetUserAvatar: "Supprimer l'avatar de l'utilisateur·rice"
|
unsetUserAvatar: "Supprimer l'avatar de l'utilisateur·rice"
|
||||||
unsetUserBanner: "Supprimer la bannière de l'utilisateur·rice"
|
unsetUserBanner: "Supprimer la bannière de l'utilisateur·rice"
|
||||||
deleteFlash: "Supprimer le Play"
|
|
||||||
_fileViewer:
|
_fileViewer:
|
||||||
title: "Détails du fichier"
|
title: "Détails du fichier"
|
||||||
type: "Type du fichier"
|
type: "Type du fichier"
|
||||||
|
@ -2347,20 +2175,5 @@ _dataSaver:
|
||||||
title: "Mise en évidence du code"
|
title: "Mise en évidence du code"
|
||||||
description: "Si la notation de mise en évidence du code est utilisée, par exemple dans la MFM, elle ne sera pas chargée tant qu'elle n'aura pas été tapée. La mise en évidence du code nécessite le chargement du fichier de définition de chaque langue à mettre en évidence, mais comme ces fichiers ne sont plus chargés automatiquement, on peut s'attendre à une réduction du trafic de données."
|
description: "Si la notation de mise en évidence du code est utilisée, par exemple dans la MFM, elle ne sera pas chargée tant qu'elle n'aura pas été tapée. La mise en évidence du code nécessite le chargement du fichier de définition de chaque langue à mettre en évidence, mais comme ces fichiers ne sont plus chargés automatiquement, on peut s'attendre à une réduction du trafic de données."
|
||||||
_reversi:
|
_reversi:
|
||||||
reversi: "Reversi"
|
|
||||||
blackIs: "{name} joue les noirs"
|
|
||||||
rules: "Règles"
|
|
||||||
waitingBoth: "Préparez-vous"
|
waitingBoth: "Préparez-vous"
|
||||||
myTurn: "C’est votre tour"
|
|
||||||
turnOf: "C'est le tour de {name}"
|
|
||||||
pastTurnOf: "Tour de {name}"
|
|
||||||
surrender: "Se rendre"
|
|
||||||
surrendered: "Par abandon"
|
|
||||||
total: "Total"
|
total: "Total"
|
||||||
playing: "En cours"
|
|
||||||
lookingForPlayer: "Recherche d'adversaire"
|
|
||||||
_mediaControls:
|
|
||||||
playbackRate: "Vitesse de lecture"
|
|
||||||
_embedCodeGen:
|
|
||||||
title: "Personnaliser le code d'intégration"
|
|
||||||
generateCode: "Générer le code d'intégration"
|
|
||||||
|
|
|
@ -375,6 +375,7 @@ enableLocalTimeline: "Nyalakan lini masa lokal"
|
||||||
enableGlobalTimeline: "Nyalakan lini masa global"
|
enableGlobalTimeline: "Nyalakan lini masa global"
|
||||||
disablingTimelinesInfo: "Admin dan Moderator akan selalu memiliki akses ke semua lini masa meskipun lini masa tersebut tidak diaktifkan."
|
disablingTimelinesInfo: "Admin dan Moderator akan selalu memiliki akses ke semua lini masa meskipun lini masa tersebut tidak diaktifkan."
|
||||||
registration: "Pendaftaran"
|
registration: "Pendaftaran"
|
||||||
|
enableRegistration: "Nyalakan pendaftaran pengguna baru"
|
||||||
invite: "Undang"
|
invite: "Undang"
|
||||||
driveCapacityPerLocalAccount: "Kapasitas drive per pengguna lokal"
|
driveCapacityPerLocalAccount: "Kapasitas drive per pengguna lokal"
|
||||||
driveCapacityPerRemoteAccount: "Kapasitas drive per pengguna remote"
|
driveCapacityPerRemoteAccount: "Kapasitas drive per pengguna remote"
|
||||||
|
|
4
locales/index.d.ts
vendored
4
locales/index.d.ts
vendored
|
@ -2362,10 +2362,6 @@ export interface Locale extends ILocale {
|
||||||
* 詳細
|
* 詳細
|
||||||
*/
|
*/
|
||||||
"details": string;
|
"details": string;
|
||||||
/**
|
|
||||||
* リノートの詳細
|
|
||||||
*/
|
|
||||||
"renoteDetails": string;
|
|
||||||
/**
|
/**
|
||||||
* 絵文字を選択
|
* 絵文字を選択
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -382,6 +382,7 @@ enableLocalTimeline: "Abilita la timeline locale"
|
||||||
enableGlobalTimeline: "Abilita la timeline federata"
|
enableGlobalTimeline: "Abilita la timeline federata"
|
||||||
disablingTimelinesInfo: "Anche disabilitandole, gli Amministratori e i Moderatori potranno comunque accedervi."
|
disablingTimelinesInfo: "Anche disabilitandole, gli Amministratori e i Moderatori potranno comunque accedervi."
|
||||||
registration: "Iscriviti"
|
registration: "Iscriviti"
|
||||||
|
enableRegistration: "Consenti a chiunque di registrarsi"
|
||||||
invite: "Invita"
|
invite: "Invita"
|
||||||
driveCapacityPerLocalAccount: "Capienza del Drive per profilo locale"
|
driveCapacityPerLocalAccount: "Capienza del Drive per profilo locale"
|
||||||
driveCapacityPerRemoteAccount: "Capienza del Drive per profilo remoto"
|
driveCapacityPerRemoteAccount: "Capienza del Drive per profilo remoto"
|
||||||
|
|
|
@ -586,7 +586,6 @@ masterVolume: "マスター音量"
|
||||||
notUseSound: "サウンドを出力しない"
|
notUseSound: "サウンドを出力しない"
|
||||||
useSoundOnlyWhenActive: "Misskeyがアクティブな時のみサウンドを出力する"
|
useSoundOnlyWhenActive: "Misskeyがアクティブな時のみサウンドを出力する"
|
||||||
details: "詳細"
|
details: "詳細"
|
||||||
renoteDetails: "リノートの詳細"
|
|
||||||
chooseEmoji: "絵文字を選択"
|
chooseEmoji: "絵文字を選択"
|
||||||
unableToProcess: "操作を完了できません"
|
unableToProcess: "操作を完了できません"
|
||||||
recentUsed: "最近使用"
|
recentUsed: "最近使用"
|
||||||
|
|
|
@ -382,6 +382,7 @@ enableLocalTimeline: "ローカルタイムラインを使えるようにする
|
||||||
enableGlobalTimeline: "グローバルタイムラインを使えるようにするわ"
|
enableGlobalTimeline: "グローバルタイムラインを使えるようにするわ"
|
||||||
disablingTimelinesInfo: "ここらへんのタイムラインを使えんようにしてしもても、管理者とモデレーターは使えるままになってるで、そうやなかったら不便やからな。"
|
disablingTimelinesInfo: "ここらへんのタイムラインを使えんようにしてしもても、管理者とモデレーターは使えるままになってるで、そうやなかったら不便やからな。"
|
||||||
registration: "登録"
|
registration: "登録"
|
||||||
|
enableRegistration: "一見さんでも誰でもいらっしゃ~い"
|
||||||
invite: "来てや"
|
invite: "来てや"
|
||||||
driveCapacityPerLocalAccount: "ローカルユーザーはんひとりあたりのドライブ容量"
|
driveCapacityPerLocalAccount: "ローカルユーザーはんひとりあたりのドライブ容量"
|
||||||
driveCapacityPerRemoteAccount: "リモートユーザーはんひとりあたりのドライブ容量"
|
driveCapacityPerRemoteAccount: "リモートユーザーはんひとりあたりのドライブ容量"
|
||||||
|
|
|
@ -356,6 +356,7 @@ enableLocalTimeline: "로컬 타임라인 키기"
|
||||||
enableGlobalTimeline: "글로벌 타임라인 키기"
|
enableGlobalTimeline: "글로벌 타임라인 키기"
|
||||||
disablingTimelinesInfo: "요 타임라인얼 꺼도 간리자하고 중재자넌 고대로 설 수 잇십니다."
|
disablingTimelinesInfo: "요 타임라인얼 꺼도 간리자하고 중재자넌 고대로 설 수 잇십니다."
|
||||||
registration: "맨걸기"
|
registration: "맨걸기"
|
||||||
|
enableRegistration: "누라도 새로 맨걸 수 잇거로 하기"
|
||||||
invite: "초대하기"
|
invite: "초대하기"
|
||||||
driveCapacityPerLocalAccount: "로컬 사용자 하나마중 드라이브 커기"
|
driveCapacityPerLocalAccount: "로컬 사용자 하나마중 드라이브 커기"
|
||||||
driveCapacityPerRemoteAccount: "웬겍 사용자 하나마중 드라이브 커기"
|
driveCapacityPerRemoteAccount: "웬겍 사용자 하나마중 드라이브 커기"
|
||||||
|
|
|
@ -382,6 +382,7 @@ enableLocalTimeline: "로컬 타임라인 활성화"
|
||||||
enableGlobalTimeline: "글로벌 타임라인 활성화"
|
enableGlobalTimeline: "글로벌 타임라인 활성화"
|
||||||
disablingTimelinesInfo: "특정 타임라인을 비활성화하더라도 관리자 및 모더레이터는 계속 사용할 수 있습니다."
|
disablingTimelinesInfo: "특정 타임라인을 비활성화하더라도 관리자 및 모더레이터는 계속 사용할 수 있습니다."
|
||||||
registration: "등록"
|
registration: "등록"
|
||||||
|
enableRegistration: "신규 회원가입을 활성화"
|
||||||
invite: "초대"
|
invite: "초대"
|
||||||
driveCapacityPerLocalAccount: "로컬 유저 한 명당 드라이브 용량"
|
driveCapacityPerLocalAccount: "로컬 유저 한 명당 드라이브 용량"
|
||||||
driveCapacityPerRemoteAccount: "원격 사용자별 드라이브 용량"
|
driveCapacityPerRemoteAccount: "원격 사용자별 드라이브 용량"
|
||||||
|
@ -1256,7 +1257,7 @@ lastNDays: "최근 {n}일"
|
||||||
backToTitle: "타이틀로 가기"
|
backToTitle: "타이틀로 가기"
|
||||||
hemisphere: "거주 지역"
|
hemisphere: "거주 지역"
|
||||||
withSensitive: "민감한 파일이 포함된 노트 보기"
|
withSensitive: "민감한 파일이 포함된 노트 보기"
|
||||||
userSaysSomethingSensitive: "{name}의 민감한 파일이 포함된 게시물"
|
userSaysSomethingSensitive: "{name} 같은 민감한 파일이 포함된 글"
|
||||||
enableHorizontalSwipe: "스와이프하여 탭 전환"
|
enableHorizontalSwipe: "스와이프하여 탭 전환"
|
||||||
loading: "불러오는 중"
|
loading: "불러오는 중"
|
||||||
surrender: "그만두기"
|
surrender: "그만두기"
|
||||||
|
|
|
@ -299,6 +299,7 @@ enableLocalTimeline: "ເປີດໃຊ້ທາມລາຍທ້ອງຖິ
|
||||||
enableGlobalTimeline: "ເປີດໃຊ້ທາມລາຍທົ່ວໂລກ"
|
enableGlobalTimeline: "ເປີດໃຊ້ທາມລາຍທົ່ວໂລກ"
|
||||||
disablingTimelinesInfo: "ຜູ້ດູແລລະບບແລະຜູ້ຄວບຄຸມຈະສາມາດເຂົ້າເຖີງໄທມ໌ໄລນ໌ທັ້ງເບີດ ເຖີງວ່າຈະບໍ່ໄດ້ເປີດໃຊ້ງານກໍ່ຕາມ"
|
disablingTimelinesInfo: "ຜູ້ດູແລລະບບແລະຜູ້ຄວບຄຸມຈະສາມາດເຂົ້າເຖີງໄທມ໌ໄລນ໌ທັ້ງເບີດ ເຖີງວ່າຈະບໍ່ໄດ້ເປີດໃຊ້ງານກໍ່ຕາມ"
|
||||||
registration: "ລົງທະບຽນ"
|
registration: "ລົງທະບຽນ"
|
||||||
|
enableRegistration: "ເປີດໃຊ້ການລົງທະບຽນຜູ້ໃຊ້ໃໝ່"
|
||||||
invite: "ເຊີນ"
|
invite: "ເຊີນ"
|
||||||
driveCapacityPerLocalAccount: "ຄວາມຈຸຂອງ drive ຕໍ່ຜູ້ໃຊ້ທ້ອງຖິ່ນ"
|
driveCapacityPerLocalAccount: "ຄວາມຈຸຂອງ drive ຕໍ່ຜູ້ໃຊ້ທ້ອງຖິ່ນ"
|
||||||
driveCapacityPerRemoteAccount: "ຄວາມຈຸຂອງ drive ຕໍ່ຜູ້ໃຊ້ໄລຍະໄກ"
|
driveCapacityPerRemoteAccount: "ຄວາມຈຸຂອງ drive ຕໍ່ຜູ້ໃຊ້ໄລຍະໄກ"
|
||||||
|
|
|
@ -333,6 +333,7 @@ enableLocalTimeline: "Inschakelen lokale tijdlijn"
|
||||||
enableGlobalTimeline: "Inschakelen globale tijdlijn "
|
enableGlobalTimeline: "Inschakelen globale tijdlijn "
|
||||||
disablingTimelinesInfo: "Beheerders en moderators hebben altijd toegang tot alle tijdlijnen, ook als ze niet actief zijn."
|
disablingTimelinesInfo: "Beheerders en moderators hebben altijd toegang tot alle tijdlijnen, ook als ze niet actief zijn."
|
||||||
registration: "Registreren"
|
registration: "Registreren"
|
||||||
|
enableRegistration: "Inschakelen registratie nieuwe gebruikers "
|
||||||
invite: "Uitnodigen"
|
invite: "Uitnodigen"
|
||||||
driveCapacityPerLocalAccount: "Opslagruimte per lokale gebruiker"
|
driveCapacityPerLocalAccount: "Opslagruimte per lokale gebruiker"
|
||||||
driveCapacityPerRemoteAccount: "Opslagruimte per externe gebruiker"
|
driveCapacityPerRemoteAccount: "Opslagruimte per externe gebruiker"
|
||||||
|
|
|
@ -260,6 +260,7 @@ enableLocalTimeline: "Aktiver lokal tidslinje"
|
||||||
enableGlobalTimeline: "Aktiver global tidslinje"
|
enableGlobalTimeline: "Aktiver global tidslinje"
|
||||||
disablingTimelinesInfo: "Administratorer og Moderatorer vil alltid ha tilgang til alle tidslinjer, selv om de ikke er aktivert."
|
disablingTimelinesInfo: "Administratorer og Moderatorer vil alltid ha tilgang til alle tidslinjer, selv om de ikke er aktivert."
|
||||||
registration: "Registrer"
|
registration: "Registrer"
|
||||||
|
enableRegistration: "Aktiver registrering av nye brukere"
|
||||||
invite: "Inviter"
|
invite: "Inviter"
|
||||||
basicInfo: "Grunnleggende informasjon"
|
basicInfo: "Grunnleggende informasjon"
|
||||||
pinnedUsers: "Festede brukrere"
|
pinnedUsers: "Festede brukrere"
|
||||||
|
|
|
@ -362,6 +362,7 @@ enableLocalTimeline: "Włącz lokalną oś czasu"
|
||||||
enableGlobalTimeline: "Włącz globalną oś czasu"
|
enableGlobalTimeline: "Włącz globalną oś czasu"
|
||||||
disablingTimelinesInfo: "Administratorzy i moderatorzy będą zawsze mieć dostęp do wszystkich osi czasu, nawet gdy są one wyłączone."
|
disablingTimelinesInfo: "Administratorzy i moderatorzy będą zawsze mieć dostęp do wszystkich osi czasu, nawet gdy są one wyłączone."
|
||||||
registration: "Zarejestruj się"
|
registration: "Zarejestruj się"
|
||||||
|
enableRegistration: "Włącz rejestrację nowych użytkowników"
|
||||||
invite: "Zaproś"
|
invite: "Zaproś"
|
||||||
driveCapacityPerLocalAccount: "Powierzchnia dyskowa na lokalnego użytkownika"
|
driveCapacityPerLocalAccount: "Powierzchnia dyskowa na lokalnego użytkownika"
|
||||||
driveCapacityPerRemoteAccount: "Powierzchnia dyskowa na zdalnego użytkownika"
|
driveCapacityPerRemoteAccount: "Powierzchnia dyskowa na zdalnego użytkownika"
|
||||||
|
@ -491,10 +492,6 @@ uiLanguage: "Język wyświetlania UI"
|
||||||
aboutX: "O {x}"
|
aboutX: "O {x}"
|
||||||
emojiStyle: "Styl emoji"
|
emojiStyle: "Styl emoji"
|
||||||
native: "Natywny"
|
native: "Natywny"
|
||||||
menuStyle: "Styl Menu"
|
|
||||||
style: "Styl"
|
|
||||||
drawer: "Schowek"
|
|
||||||
popup: "Wyskakujące okienka"
|
|
||||||
showNoteActionsOnlyHover: "Pokazuj akcje notatek tylko po najechaniu myszką"
|
showNoteActionsOnlyHover: "Pokazuj akcje notatek tylko po najechaniu myszką"
|
||||||
showReactionsCount: "Wyświetl liczbę reakcji na notatkę"
|
showReactionsCount: "Wyświetl liczbę reakcji na notatkę"
|
||||||
noHistory: "Brak historii"
|
noHistory: "Brak historii"
|
||||||
|
@ -577,7 +574,6 @@ ascendingOrder: "Rosnąco"
|
||||||
descendingOrder: "Malejąco"
|
descendingOrder: "Malejąco"
|
||||||
scratchpad: "Brudnopis"
|
scratchpad: "Brudnopis"
|
||||||
scratchpadDescription: "Brudnopis zawiera eksperymentalne środowisko dla AiScript. Możesz pisać, wykonywać i sprawdzać wyniki w interakcji z Misskey."
|
scratchpadDescription: "Brudnopis zawiera eksperymentalne środowisko dla AiScript. Możesz pisać, wykonywać i sprawdzać wyniki w interakcji z Misskey."
|
||||||
uiInspector: "Inspektor UI"
|
|
||||||
output: "Wyjście"
|
output: "Wyjście"
|
||||||
script: "Skrypt"
|
script: "Skrypt"
|
||||||
disablePagesScript: "Wyłącz AiScript na Stronach"
|
disablePagesScript: "Wyłącz AiScript na Stronach"
|
||||||
|
@ -658,7 +654,6 @@ smtpSecure: "Użyj niejawnego SSL/TLS dla połączeń SMTP"
|
||||||
smtpSecureInfo: "Wyłącz, jeżeli używasz STARTTLS"
|
smtpSecureInfo: "Wyłącz, jeżeli używasz STARTTLS"
|
||||||
testEmail: "Przetestuj dostarczanie wiadomości e-mail"
|
testEmail: "Przetestuj dostarczanie wiadomości e-mail"
|
||||||
wordMute: "Wyciszenie słowa"
|
wordMute: "Wyciszenie słowa"
|
||||||
hardWordMute: "Wyciszaj przekleństwa"
|
|
||||||
regexpError: "Błąd wyrażenia regularnego"
|
regexpError: "Błąd wyrażenia regularnego"
|
||||||
regexpErrorDescription: "Wystąpił błąd w wyrażeniu regularnym w linii {line} twoich {tab} wyciszeń:"
|
regexpErrorDescription: "Wystąpił błąd w wyrażeniu regularnym w linii {line} twoich {tab} wyciszeń:"
|
||||||
instanceMute: "Wyciszone instancje"
|
instanceMute: "Wyciszone instancje"
|
||||||
|
@ -831,7 +826,6 @@ administration: "Zarządzanie"
|
||||||
accounts: "Konta"
|
accounts: "Konta"
|
||||||
switch: "Przełącz"
|
switch: "Przełącz"
|
||||||
noMaintainerInformationWarning: "Informacje o administratorze nie są skonfigurowane."
|
noMaintainerInformationWarning: "Informacje o administratorze nie są skonfigurowane."
|
||||||
noInquiryUrlWarning: "Adres URL zapytania nie został ustawiony"
|
|
||||||
noBotProtectionWarning: "Zabezpieczenie przed botami nie jest skonfigurowane."
|
noBotProtectionWarning: "Zabezpieczenie przed botami nie jest skonfigurowane."
|
||||||
configure: "Skonfiguruj"
|
configure: "Skonfiguruj"
|
||||||
postToGallery: "Opublikuj w galerii"
|
postToGallery: "Opublikuj w galerii"
|
||||||
|
@ -896,7 +890,6 @@ followersVisibility: "Widoczność obserwujących"
|
||||||
continueThread: "Pokaż kontynuację wątku"
|
continueThread: "Pokaż kontynuację wątku"
|
||||||
deleteAccountConfirm: "Spowoduje to nieodwracalne usunięcie Twojego konta. Kontynuować?"
|
deleteAccountConfirm: "Spowoduje to nieodwracalne usunięcie Twojego konta. Kontynuować?"
|
||||||
incorrectPassword: "Nieprawidłowe hasło."
|
incorrectPassword: "Nieprawidłowe hasło."
|
||||||
incorrectTotp: "Hasło pojedynczego użytku jest nie poprawne, lub straciło ważność"
|
|
||||||
voteConfirm: "Potwierdzić swój głos na \"{choice}\"?"
|
voteConfirm: "Potwierdzić swój głos na \"{choice}\"?"
|
||||||
hide: "Ukryj"
|
hide: "Ukryj"
|
||||||
useDrawerReactionPickerForMobile: "Wyświetlaj wybornik reakcji jako szufladę na urządzeniach mobilnych"
|
useDrawerReactionPickerForMobile: "Wyświetlaj wybornik reakcji jako szufladę na urządzeniach mobilnych"
|
||||||
|
@ -921,10 +914,6 @@ oneHour: "1 godzina"
|
||||||
oneDay: "1 dzień"
|
oneDay: "1 dzień"
|
||||||
oneWeek: "1 tydzień"
|
oneWeek: "1 tydzień"
|
||||||
oneMonth: "jeden miesiąc"
|
oneMonth: "jeden miesiąc"
|
||||||
threeMonths: "3 miesiące"
|
|
||||||
oneYear: "Rok"
|
|
||||||
threeDays: "3 dni"
|
|
||||||
reflectMayTakeTime: "Może minąć trochę czasu, zanim będzie to uwzględnione"
|
|
||||||
failedToFetchAccountInformation: "Nie udało się uzyskać informacji o koncie"
|
failedToFetchAccountInformation: "Nie udało się uzyskać informacji o koncie"
|
||||||
rateLimitExceeded: "Limit szybkości przekroczony"
|
rateLimitExceeded: "Limit szybkości przekroczony"
|
||||||
cropImage: "Przytnij obraz"
|
cropImage: "Przytnij obraz"
|
||||||
|
@ -935,11 +924,9 @@ file: "Pliki"
|
||||||
recentNHours: "W ciągu ostatnich {n} godzin"
|
recentNHours: "W ciągu ostatnich {n} godzin"
|
||||||
recentNDays: "W ciągu ostatnich {n} dni"
|
recentNDays: "W ciągu ostatnich {n} dni"
|
||||||
noEmailServerWarning: "Serwer Email nie jest skonfigurowany"
|
noEmailServerWarning: "Serwer Email nie jest skonfigurowany"
|
||||||
thereIsUnresolvedAbuseReportWarning: "Istnieją niewyjaśnione raporty"
|
|
||||||
recommended: "Zalecane"
|
recommended: "Zalecane"
|
||||||
check: "Zweryfikuj"
|
check: "Zweryfikuj"
|
||||||
driveCapOverrideLabel: "Zmień limit pojemności dysku użytkownika"
|
driveCapOverrideLabel: "Zmień limit pojemności dysku użytkownika"
|
||||||
driveCapOverrideCaption: "Resetuje pojemność do wartości domyślnej, przez wpisanie wartości 0 lub niższej"
|
|
||||||
requireAdminForView: "Aby to zobaczyć, musisz być administratorem"
|
requireAdminForView: "Aby to zobaczyć, musisz być administratorem"
|
||||||
isSystemAccount: "To jest konto stworzone i zarządzane przez system"
|
isSystemAccount: "To jest konto stworzone i zarządzane przez system"
|
||||||
typeToConfirm: "Wprowadź {x}, aby potwierdzić"
|
typeToConfirm: "Wprowadź {x}, aby potwierdzić"
|
||||||
|
@ -1008,29 +995,17 @@ unassign: "Cofnij przydzielenie"
|
||||||
color: "Kolor"
|
color: "Kolor"
|
||||||
manageCustomEmojis: "Zarządzaj niestandardowymi Emoji"
|
manageCustomEmojis: "Zarządzaj niestandardowymi Emoji"
|
||||||
manageAvatarDecorations: "Zarządzaj dekoracjami awatara"
|
manageAvatarDecorations: "Zarządzaj dekoracjami awatara"
|
||||||
youCannotCreateAnymore: "Limit kreacji został przekroczony"
|
|
||||||
cannotPerformTemporary: "Opcja tymczasowo niedostępna"
|
|
||||||
cannotPerformTemporaryDescription: "Ta akcja nie może zostać wykonana, z powodu przekroczenia limitu wykonań. Prosimy poczekać chwilę i spróbować ponownie"
|
|
||||||
invalidParamError: "Błąd parametrów"
|
invalidParamError: "Błąd parametrów"
|
||||||
invalidParamErrorDescription: "Wartości, które zostały podane są niepoprawne. Zwykle jest to spowodowane bugiem, lecz również może być to spowodowane przekroczeniem limitu wartości, lub podobnym problemem"
|
|
||||||
permissionDeniedError: "Odrzucono operacje"
|
permissionDeniedError: "Odrzucono operacje"
|
||||||
permissionDeniedErrorDescription: "Konto nie posiada uprawnień"
|
permissionDeniedErrorDescription: "Konto nie posiada uprawnień"
|
||||||
preset: "Konfiguracja"
|
preset: "Konfiguracja"
|
||||||
selectFromPresets: "Wybierz konfiguracje"
|
selectFromPresets: "Wybierz konfiguracje"
|
||||||
achievements: "Osiągnięcia"
|
achievements: "Osiągnięcia"
|
||||||
gotInvalidResponseError: "Niepoprawna odpowiedź serwera"
|
|
||||||
gotInvalidResponseErrorDescription: "Wystąpił problem z Twoim połączeniem z Internetem, lub z serwerem. {Spróbuj ponownie} wkrótce."
|
|
||||||
thisPostMayBeAnnoying: "Ten wpis może obrażać pozostałych użytkowników"
|
|
||||||
thisPostMayBeAnnoyingHome: "Opublikuj na domowej osi czasu"
|
|
||||||
thisPostMayBeAnnoyingCancel: "Odrzuć"
|
thisPostMayBeAnnoyingCancel: "Odrzuć"
|
||||||
thisPostMayBeAnnoyingIgnore: "Zignoruj i wyślij"
|
|
||||||
collapseRenotes: "Zwiń wpisy, które już zobaczyłeś"
|
|
||||||
collapseRenotesDescription: "Zwiń wpisy, na które już zareagowałeś lub udostępniłeś"
|
|
||||||
internalServerError: "Wewnętrzny błąd serwera"
|
internalServerError: "Wewnętrzny błąd serwera"
|
||||||
internalServerErrorDescription: "Niespodziewany błąd po stronie serwera"
|
internalServerErrorDescription: "Niespodziewany błąd po stronie serwera"
|
||||||
copyErrorInfo: "Kopiuj informacje o błędzie"
|
copyErrorInfo: "Kopiuj informacje o błędzie"
|
||||||
joinThisServer: "Dołącz do chaty"
|
joinThisServer: "Dołącz do chaty"
|
||||||
exploreOtherServers: "Szukaj innej instancji"
|
|
||||||
disableFederationOk: "Wyłącz federacje"
|
disableFederationOk: "Wyłącz federacje"
|
||||||
invitationRequiredToRegister: "Ten serwer wymaga zaproszenia. Tylko osoby z zaproszeniem mogą się zarejestrować"
|
invitationRequiredToRegister: "Ten serwer wymaga zaproszenia. Tylko osoby z zaproszeniem mogą się zarejestrować"
|
||||||
emailNotSupported: "Wysyłanie wiadomości E-mail nie jest obsługiwane na tym serwerze"
|
emailNotSupported: "Wysyłanie wiadomości E-mail nie jest obsługiwane na tym serwerze"
|
||||||
|
|
|
@ -376,6 +376,7 @@ enableLocalTimeline: "Ativar linha do tempo local"
|
||||||
enableGlobalTimeline: "Ativar linha do tempo global"
|
enableGlobalTimeline: "Ativar linha do tempo global"
|
||||||
disablingTimelinesInfo: "Se você desabilitar essas linhas do tempo, administradores e moderadores ainda poderão usá-las por conveniência."
|
disablingTimelinesInfo: "Se você desabilitar essas linhas do tempo, administradores e moderadores ainda poderão usá-las por conveniência."
|
||||||
registration: "Registar"
|
registration: "Registar"
|
||||||
|
enableRegistration: "Permitir que qualquer pessoa se registre"
|
||||||
invite: "Convidar"
|
invite: "Convidar"
|
||||||
driveCapacityPerLocalAccount: "Capacidade do drive por usuário local"
|
driveCapacityPerLocalAccount: "Capacidade do drive por usuário local"
|
||||||
driveCapacityPerRemoteAccount: "Capacidade do drive por usuário remoto"
|
driveCapacityPerRemoteAccount: "Capacidade do drive por usuário remoto"
|
||||||
|
|
|
@ -341,6 +341,7 @@ enableLocalTimeline: "Activează cronologia locală"
|
||||||
enableGlobalTimeline: "Activeaza cronologia globală"
|
enableGlobalTimeline: "Activeaza cronologia globală"
|
||||||
disablingTimelinesInfo: "Administratorii și Moderatorii vor avea mereu access la toate cronologiile, chiar dacă nu sunt activate."
|
disablingTimelinesInfo: "Administratorii și Moderatorii vor avea mereu access la toate cronologiile, chiar dacă nu sunt activate."
|
||||||
registration: "Inregistrare"
|
registration: "Inregistrare"
|
||||||
|
enableRegistration: "Activează înregistrările pentru utilizatori noi"
|
||||||
invite: "Invită"
|
invite: "Invită"
|
||||||
driveCapacityPerLocalAccount: "Capacitatea Drive-ului per utilizator local"
|
driveCapacityPerLocalAccount: "Capacitatea Drive-ului per utilizator local"
|
||||||
driveCapacityPerRemoteAccount: "Capacitatea Drive-ului per utilizator extern"
|
driveCapacityPerRemoteAccount: "Capacitatea Drive-ului per utilizator extern"
|
||||||
|
|
|
@ -377,6 +377,7 @@ enableLocalTimeline: "Включить локальную ленту"
|
||||||
enableGlobalTimeline: "Включить глобальную ленту"
|
enableGlobalTimeline: "Включить глобальную ленту"
|
||||||
disablingTimelinesInfo: "У администраторов и модераторов есть доступ ко всем лентам, даже если они отключены."
|
disablingTimelinesInfo: "У администраторов и модераторов есть доступ ко всем лентам, даже если они отключены."
|
||||||
registration: "Регистрация"
|
registration: "Регистрация"
|
||||||
|
enableRegistration: "Разрешить регистрацию"
|
||||||
invite: "Пригласить"
|
invite: "Пригласить"
|
||||||
driveCapacityPerLocalAccount: "Объём Диска на одного локального пользователя"
|
driveCapacityPerLocalAccount: "Объём Диска на одного локального пользователя"
|
||||||
driveCapacityPerRemoteAccount: "Объём Диска на одного пользователя с другого экземпляра"
|
driveCapacityPerRemoteAccount: "Объём Диска на одного пользователя с другого экземпляра"
|
||||||
|
|
|
@ -331,6 +331,7 @@ enableLocalTimeline: "Povoliť lokálnu časovú os"
|
||||||
enableGlobalTimeline: "Povoliť globálnu časovú os"
|
enableGlobalTimeline: "Povoliť globálnu časovú os"
|
||||||
disablingTimelinesInfo: "Administrátori a moderátori majú vždy prístup ku všetkým časovým osiam, aj keď sú vypnuté."
|
disablingTimelinesInfo: "Administrátori a moderátori majú vždy prístup ku všetkým časovým osiam, aj keď sú vypnuté."
|
||||||
registration: "Registrácia"
|
registration: "Registrácia"
|
||||||
|
enableRegistration: "Povoliť registráciu nových používateľov"
|
||||||
invite: "Pozvať"
|
invite: "Pozvať"
|
||||||
driveCapacityPerLocalAccount: "Kapacita disku pre používateľa"
|
driveCapacityPerLocalAccount: "Kapacita disku pre používateľa"
|
||||||
driveCapacityPerRemoteAccount: "Kapacita disku pre vzdialeného používateľa"
|
driveCapacityPerRemoteAccount: "Kapacita disku pre vzdialeného používateľa"
|
||||||
|
|
|
@ -333,6 +333,7 @@ disconnectService: "Koppla från"
|
||||||
enableLocalTimeline: "Aktivera lokal tidslinje"
|
enableLocalTimeline: "Aktivera lokal tidslinje"
|
||||||
enableGlobalTimeline: "Aktivera global tidslinje"
|
enableGlobalTimeline: "Aktivera global tidslinje"
|
||||||
registration: "Registrera"
|
registration: "Registrera"
|
||||||
|
enableRegistration: "Aktivera registrering av nya användare"
|
||||||
invite: "Inbjudan"
|
invite: "Inbjudan"
|
||||||
inMb: "I megabyte"
|
inMb: "I megabyte"
|
||||||
bannerUrl: "URL till banner-bilden"
|
bannerUrl: "URL till banner-bilden"
|
||||||
|
@ -480,7 +481,6 @@ nNotes: "{n} Noter"
|
||||||
backgroundColor: "Bakgrundsbild"
|
backgroundColor: "Bakgrundsbild"
|
||||||
textColor: "Text"
|
textColor: "Text"
|
||||||
saveAs: "Spara som..."
|
saveAs: "Spara som..."
|
||||||
saveConfirm: "Spara ändringar?"
|
|
||||||
youAreRunningUpToDateClient: "Klienten du använder är uppdaterat."
|
youAreRunningUpToDateClient: "Klienten du använder är uppdaterat."
|
||||||
newVersionOfClientAvailable: "Ny version av klienten är tillgänglig."
|
newVersionOfClientAvailable: "Ny version av klienten är tillgänglig."
|
||||||
editCode: "Redigera kod"
|
editCode: "Redigera kod"
|
||||||
|
@ -523,7 +523,6 @@ threeMonths: "3 månader"
|
||||||
oneYear: "1 år"
|
oneYear: "1 år"
|
||||||
threeDays: "3 dagar"
|
threeDays: "3 dagar"
|
||||||
file: "Filer"
|
file: "Filer"
|
||||||
deleteAccount: "Radera konto"
|
|
||||||
label: "Etikett"
|
label: "Etikett"
|
||||||
cannotUploadBecauseNoFreeSpace: "Kan inte ladda upp filen för att det finns inget lagringsutrymme kvar."
|
cannotUploadBecauseNoFreeSpace: "Kan inte ladda upp filen för att det finns inget lagringsutrymme kvar."
|
||||||
cannotUploadBecauseExceedsFileSizeLimit: "Kan inte ladda upp filen för att den är större än filstorleksgränsen."
|
cannotUploadBecauseExceedsFileSizeLimit: "Kan inte ladda upp filen för att den är större än filstorleksgränsen."
|
||||||
|
@ -576,13 +575,9 @@ _achievements:
|
||||||
_open3windows:
|
_open3windows:
|
||||||
title: "Flera Fönster"
|
title: "Flera Fönster"
|
||||||
description: "Ha minst 3 fönster öppna samtidigt"
|
description: "Ha minst 3 fönster öppna samtidigt"
|
||||||
_role:
|
|
||||||
edit: "Redigera roll"
|
|
||||||
_ffVisibility:
|
_ffVisibility:
|
||||||
public: "Publicera"
|
public: "Publicera"
|
||||||
private: "Privat"
|
private: "Privat"
|
||||||
_accountDelete:
|
|
||||||
accountDelete: "Radera konto"
|
|
||||||
_ad:
|
_ad:
|
||||||
back: "Tillbaka"
|
back: "Tillbaka"
|
||||||
_gallery:
|
_gallery:
|
||||||
|
@ -592,7 +587,6 @@ _email:
|
||||||
title: "följde dig"
|
title: "följde dig"
|
||||||
_aboutMisskey:
|
_aboutMisskey:
|
||||||
source: "Källkod"
|
source: "Källkod"
|
||||||
projectMembers: "Projektmedlemmar"
|
|
||||||
_channel:
|
_channel:
|
||||||
setBanner: "Välj banner"
|
setBanner: "Välj banner"
|
||||||
removeBanner: "Ta bort banner"
|
removeBanner: "Ta bort banner"
|
||||||
|
@ -608,17 +602,8 @@ _theme:
|
||||||
_sfx:
|
_sfx:
|
||||||
note: "Noter"
|
note: "Noter"
|
||||||
notification: "Notifikationer"
|
notification: "Notifikationer"
|
||||||
_ago:
|
|
||||||
justNow: "Just nu"
|
|
||||||
_2fa:
|
_2fa:
|
||||||
step3Title: "Ange en autentiseringskod"
|
|
||||||
renewTOTPCancel: "Nej tack"
|
renewTOTPCancel: "Nej tack"
|
||||||
_permissions:
|
|
||||||
"read:reactions": "Visa dina reaktioner"
|
|
||||||
"write:reactions": "Redigera dina reaktioner"
|
|
||||||
"write:admin:delete-account": "Radera användarkonto"
|
|
||||||
"write:admin:roles": "Hantera roller"
|
|
||||||
"read:admin:roles": "Visa roller"
|
|
||||||
_antennaSources:
|
_antennaSources:
|
||||||
all: "Alla noter"
|
all: "Alla noter"
|
||||||
homeTimeline: "Noter från följda användare"
|
homeTimeline: "Noter från följda användare"
|
||||||
|
@ -681,8 +666,6 @@ _notification:
|
||||||
reply: "Svara"
|
reply: "Svara"
|
||||||
renote: "Omnotera"
|
renote: "Omnotera"
|
||||||
_deck:
|
_deck:
|
||||||
addColumn: "Lägg till kolumn"
|
|
||||||
deleteProfile: "Radera profil"
|
|
||||||
_columns:
|
_columns:
|
||||||
notifications: "Notifikationer"
|
notifications: "Notifikationer"
|
||||||
tl: "Tidslinje"
|
tl: "Tidslinje"
|
||||||
|
|
|
@ -382,6 +382,7 @@ enableLocalTimeline: "เปิดใช้งานไทม์ไลน์ท
|
||||||
enableGlobalTimeline: "เปิดใช้งานไทม์ไลน์ทั่วโลก"
|
enableGlobalTimeline: "เปิดใช้งานไทม์ไลน์ทั่วโลก"
|
||||||
disablingTimelinesInfo: "ผู้ดูแลระบบและผู้ควบคุมจะสามารถเข้าถึงไทม์ไลน์ทั้งหมด ถึงแม้ว่าจะไม่ได้เปิดใช้งานก็ตาม"
|
disablingTimelinesInfo: "ผู้ดูแลระบบและผู้ควบคุมจะสามารถเข้าถึงไทม์ไลน์ทั้งหมด ถึงแม้ว่าจะไม่ได้เปิดใช้งานก็ตาม"
|
||||||
registration: "ลงทะเบียน"
|
registration: "ลงทะเบียน"
|
||||||
|
enableRegistration: "เปิดใช้งานการลงทะเบียนผู้ใช้ใหม่"
|
||||||
invite: "คำเชิญ"
|
invite: "คำเชิญ"
|
||||||
driveCapacityPerLocalAccount: "ความจุของไดรฟ์ต่อผู้ใช้ท้องถิ่น"
|
driveCapacityPerLocalAccount: "ความจุของไดรฟ์ต่อผู้ใช้ท้องถิ่น"
|
||||||
driveCapacityPerRemoteAccount: "ความจุของไดรฟ์ต่อผู้ใช้ระยะไกล"
|
driveCapacityPerRemoteAccount: "ความจุของไดรฟ์ต่อผู้ใช้ระยะไกล"
|
||||||
|
|
|
@ -344,6 +344,7 @@ today: "Bugün"
|
||||||
monthX: "{month} ay"
|
monthX: "{month} ay"
|
||||||
pages: "Sayfalar"
|
pages: "Sayfalar"
|
||||||
integration: "Entegrasyon"
|
integration: "Entegrasyon"
|
||||||
|
enableRegistration: "Kayıtlara izin ver"
|
||||||
basicInfo: "Temel bilgiler"
|
basicInfo: "Temel bilgiler"
|
||||||
pinnedUsers: "Sabitlenmiş kullanıcılar"
|
pinnedUsers: "Sabitlenmiş kullanıcılar"
|
||||||
pinnedNotes: "Sabitlenen"
|
pinnedNotes: "Sabitlenen"
|
||||||
|
|
|
@ -334,6 +334,7 @@ enableLocalTimeline: "Увімкнути локальну стрічку"
|
||||||
enableGlobalTimeline: "Увімкнути глобальну стрічку"
|
enableGlobalTimeline: "Увімкнути глобальну стрічку"
|
||||||
disablingTimelinesInfo: "Адміністратори та модератори завжди мають доступ до всіх стрічок, навіть якщо вони вимкнуті."
|
disablingTimelinesInfo: "Адміністратори та модератори завжди мають доступ до всіх стрічок, навіть якщо вони вимкнуті."
|
||||||
registration: "Реєстрація"
|
registration: "Реєстрація"
|
||||||
|
enableRegistration: "Дозволити реєстрацію"
|
||||||
invite: "Запросити"
|
invite: "Запросити"
|
||||||
driveCapacityPerLocalAccount: "Об'єм диска на одного локального користувача"
|
driveCapacityPerLocalAccount: "Об'єм диска на одного локального користувача"
|
||||||
driveCapacityPerRemoteAccount: "Об'єм диска на одного віддаленого користувача"
|
driveCapacityPerRemoteAccount: "Об'єм диска на одного віддаленого користувача"
|
||||||
|
|
|
@ -349,6 +349,7 @@ enableLocalTimeline: "Mahalliy vaqt mintaqasini yoqing"
|
||||||
enableGlobalTimeline: "Global vaqt mintaqasini yoqing"
|
enableGlobalTimeline: "Global vaqt mintaqasini yoqing"
|
||||||
disablingTimelinesInfo: "Administratorlar va Moderatorlar har doim barcha vaqt jadvallariga kirish huquqiga ega bo'ladilar, hatto ular yoqilmagan bo'lsa ham."
|
disablingTimelinesInfo: "Administratorlar va Moderatorlar har doim barcha vaqt jadvallariga kirish huquqiga ega bo'ladilar, hatto ular yoqilmagan bo'lsa ham."
|
||||||
registration: "Ro'yxatdan o'tish"
|
registration: "Ro'yxatdan o'tish"
|
||||||
|
enableRegistration: "Ro'yxatdan o'tishni yoqing"
|
||||||
invite: "Taklif qilish"
|
invite: "Taklif qilish"
|
||||||
driveCapacityPerLocalAccount: "Har bir mahalliy foydalanuvchi uchun disk maydoni"
|
driveCapacityPerLocalAccount: "Har bir mahalliy foydalanuvchi uchun disk maydoni"
|
||||||
driveCapacityPerRemoteAccount: "Har bir masofaviy foydalanuvchi uchun disk maydoni"
|
driveCapacityPerRemoteAccount: "Har bir masofaviy foydalanuvchi uchun disk maydoni"
|
||||||
|
|
|
@ -357,6 +357,7 @@ enableLocalTimeline: "Bật bảng tin máy chủ"
|
||||||
enableGlobalTimeline: "Bật bảng tin liên hợp"
|
enableGlobalTimeline: "Bật bảng tin liên hợp"
|
||||||
disablingTimelinesInfo: "Quản trị viên và Kiểm duyệt viên luôn có quyền truy cập mọi bảng tin, kể cả khi chúng không được bật."
|
disablingTimelinesInfo: "Quản trị viên và Kiểm duyệt viên luôn có quyền truy cập mọi bảng tin, kể cả khi chúng không được bật."
|
||||||
registration: "Đăng ký"
|
registration: "Đăng ký"
|
||||||
|
enableRegistration: "Cho phép đăng ký mới"
|
||||||
invite: "Mời"
|
invite: "Mời"
|
||||||
driveCapacityPerLocalAccount: "Dung lượng ổ đĩa tối đa cho mỗi người dùng"
|
driveCapacityPerLocalAccount: "Dung lượng ổ đĩa tối đa cho mỗi người dùng"
|
||||||
driveCapacityPerRemoteAccount: "Dung lượng ổ đĩa tối đa cho mỗi người dùng từ xa"
|
driveCapacityPerRemoteAccount: "Dung lượng ổ đĩa tối đa cho mỗi người dùng từ xa"
|
||||||
|
|
|
@ -382,6 +382,7 @@ enableLocalTimeline: "启用本地时间线"
|
||||||
enableGlobalTimeline: "启用全局时间线"
|
enableGlobalTimeline: "启用全局时间线"
|
||||||
disablingTimelinesInfo: "即使时间线功能被禁用,出于方便,管理员和监察员也可以继续使用。"
|
disablingTimelinesInfo: "即使时间线功能被禁用,出于方便,管理员和监察员也可以继续使用。"
|
||||||
registration: "注册"
|
registration: "注册"
|
||||||
|
enableRegistration: "允许任何人注册"
|
||||||
invite: "邀请"
|
invite: "邀请"
|
||||||
driveCapacityPerLocalAccount: "每个用户的网盘容量"
|
driveCapacityPerLocalAccount: "每个用户的网盘容量"
|
||||||
driveCapacityPerRemoteAccount: "每个远程用户的网盘容量"
|
driveCapacityPerRemoteAccount: "每个远程用户的网盘容量"
|
||||||
|
@ -586,7 +587,6 @@ masterVolume: "主音量"
|
||||||
notUseSound: "静音"
|
notUseSound: "静音"
|
||||||
useSoundOnlyWhenActive: "仅在 Misskey 活跃时输出声音"
|
useSoundOnlyWhenActive: "仅在 Misskey 活跃时输出声音"
|
||||||
details: "详情"
|
details: "详情"
|
||||||
renoteDetails: "转帖详情"
|
|
||||||
chooseEmoji: "选择表情符号"
|
chooseEmoji: "选择表情符号"
|
||||||
unableToProcess: "操作无法完成"
|
unableToProcess: "操作无法完成"
|
||||||
recentUsed: "最近使用"
|
recentUsed: "最近使用"
|
||||||
|
@ -1300,7 +1300,6 @@ thisContentsAreMarkedAsSigninRequiredByAuthor: "根据发帖者的设定,需
|
||||||
lockdown: "锁定"
|
lockdown: "锁定"
|
||||||
pleaseSelectAccount: "请选择帐户"
|
pleaseSelectAccount: "请选择帐户"
|
||||||
availableRoles: "可用角色"
|
availableRoles: "可用角色"
|
||||||
acknowledgeNotesAndEnable: "理解注意事项后再开启。"
|
|
||||||
_accountSettings:
|
_accountSettings:
|
||||||
requireSigninToViewContents: "需要登录才能显示内容"
|
requireSigninToViewContents: "需要登录才能显示内容"
|
||||||
requireSigninToViewContentsDescription1: "您发布的所有帖子将变成需要登入后才会显示。有望防止爬虫收集各种信息。"
|
requireSigninToViewContentsDescription1: "您发布的所有帖子将变成需要登入后才会显示。有望防止爬虫收集各种信息。"
|
||||||
|
@ -1457,8 +1456,6 @@ _serverSettings:
|
||||||
reactionsBufferingDescription: "开启时可显著提高发送回应时的性能,及减轻数据库负荷。但 Redis 的内存用量会相应增加。"
|
reactionsBufferingDescription: "开启时可显著提高发送回应时的性能,及减轻数据库负荷。但 Redis 的内存用量会相应增加。"
|
||||||
inquiryUrl: "联络地址"
|
inquiryUrl: "联络地址"
|
||||||
inquiryUrlDescription: "用来指定诸如向服务运营商咨询的论坛地址,或记载了运营商联系方式之类的网页地址。"
|
inquiryUrlDescription: "用来指定诸如向服务运营商咨询的论坛地址,或记载了运营商联系方式之类的网页地址。"
|
||||||
openRegistration: "开放注册"
|
|
||||||
openRegistrationWarning: "开放注册有风险。建议仅当能够持续监控服务器并在出现问题时能够立即响应时才打开它。"
|
|
||||||
thisSettingWillAutomaticallyOffWhenModeratorsInactive: "若在一段时间内没有检测到管理活动,为防止垃圾信息,此设定将自动关闭。"
|
thisSettingWillAutomaticallyOffWhenModeratorsInactive: "若在一段时间内没有检测到管理活动,为防止垃圾信息,此设定将自动关闭。"
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "从别的账号迁移到此账户"
|
moveFrom: "从别的账号迁移到此账户"
|
||||||
|
@ -2741,6 +2738,3 @@ _selfXssPrevention:
|
||||||
description1: "如果在此处粘贴了什么,恶意用户可能会接管账户或者盗取个人资料。"
|
description1: "如果在此处粘贴了什么,恶意用户可能会接管账户或者盗取个人资料。"
|
||||||
description2: "如果不能完全理解将要粘贴的内容,%c 请立即停止操作并关闭这个窗口。"
|
description2: "如果不能完全理解将要粘贴的内容,%c 请立即停止操作并关闭这个窗口。"
|
||||||
description3: "详情请看这里。{link}"
|
description3: "详情请看这里。{link}"
|
||||||
_followRequest:
|
|
||||||
recieved: "已收到申请"
|
|
||||||
sent: "已发送申请"
|
|
||||||
|
|
|
@ -382,6 +382,7 @@ enableLocalTimeline: "啟用本地時間軸"
|
||||||
enableGlobalTimeline: "啟用全域時間軸"
|
enableGlobalTimeline: "啟用全域時間軸"
|
||||||
disablingTimelinesInfo: "為了方便,即使您關閉了時間軸功能,管理員和審查員仍可以繼續使用。"
|
disablingTimelinesInfo: "為了方便,即使您關閉了時間軸功能,管理員和審查員仍可以繼續使用。"
|
||||||
registration: "註冊"
|
registration: "註冊"
|
||||||
|
enableRegistration: "開放新使用者註冊"
|
||||||
invite: "邀請"
|
invite: "邀請"
|
||||||
driveCapacityPerLocalAccount: "每個本地使用者的雲端硬碟容量"
|
driveCapacityPerLocalAccount: "每個本地使用者的雲端硬碟容量"
|
||||||
driveCapacityPerRemoteAccount: "每個非本地用戶的雲端空間大小"
|
driveCapacityPerRemoteAccount: "每個非本地用戶的雲端空間大小"
|
||||||
|
@ -1118,7 +1119,7 @@ vertical: "直向"
|
||||||
horizontal: "橫向"
|
horizontal: "橫向"
|
||||||
position: "位置"
|
position: "位置"
|
||||||
serverRules: "伺服器規則"
|
serverRules: "伺服器規則"
|
||||||
pleaseConfirmBelowBeforeSignup: "在本伺服器註冊之前,必須確認並同意以下內容。"
|
pleaseConfirmBelowBeforeSignup: "在本伺服器註冊之前,請確認下列事項。"
|
||||||
pleaseAgreeAllToContinue: "必須全部勾選「同意」才能繼續。"
|
pleaseAgreeAllToContinue: "必須全部勾選「同意」才能繼續。"
|
||||||
continue: "繼續"
|
continue: "繼續"
|
||||||
preservedUsernames: "保留的使用者名稱"
|
preservedUsernames: "保留的使用者名稱"
|
||||||
|
@ -1299,7 +1300,6 @@ thisContentsAreMarkedAsSigninRequiredByAuthor: "作者將其設定為需要登
|
||||||
lockdown: "鎖定"
|
lockdown: "鎖定"
|
||||||
pleaseSelectAccount: "請選擇帳戶"
|
pleaseSelectAccount: "請選擇帳戶"
|
||||||
availableRoles: "可用角色"
|
availableRoles: "可用角色"
|
||||||
acknowledgeNotesAndEnable: "了解注意事項後再開啟。"
|
|
||||||
_accountSettings:
|
_accountSettings:
|
||||||
requireSigninToViewContents: "須登入以顯示內容"
|
requireSigninToViewContents: "須登入以顯示內容"
|
||||||
requireSigninToViewContentsDescription1: "必須登入才會顯示您建立的貼文等內容。可望有效防止資訊被爬蟲蒐集。"
|
requireSigninToViewContentsDescription1: "必須登入才會顯示您建立的貼文等內容。可望有效防止資訊被爬蟲蒐集。"
|
||||||
|
@ -1456,8 +1456,6 @@ _serverSettings:
|
||||||
reactionsBufferingDescription: "啟用時,可以顯著提高建立反應時的效能並減少資料庫的負載。 但是,Redis 記憶體使用量會增加。"
|
reactionsBufferingDescription: "啟用時,可以顯著提高建立反應時的效能並減少資料庫的負載。 但是,Redis 記憶體使用量會增加。"
|
||||||
inquiryUrl: "聯絡表單網址"
|
inquiryUrl: "聯絡表單網址"
|
||||||
inquiryUrlDescription: "指定伺服器運營者的聯絡表單網址,或包含運營者聯絡資訊網頁的網址。"
|
inquiryUrlDescription: "指定伺服器運營者的聯絡表單網址,或包含運營者聯絡資訊網頁的網址。"
|
||||||
openRegistration: "允許建立帳戶"
|
|
||||||
openRegistrationWarning: "開放註冊伴隨著風險。 建議只有在伺服器受到持續監控,並準備好在出現問題時能立即處理的情況下才開放註冊。"
|
|
||||||
thisSettingWillAutomaticallyOffWhenModeratorsInactive: "為了防止 spam,如果一段期間內沒有偵測到審查員的活動,此設定將自動關閉。"
|
thisSettingWillAutomaticallyOffWhenModeratorsInactive: "為了防止 spam,如果一段期間內沒有偵測到審查員的活動,此設定將自動關閉。"
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "從其他帳戶遷移到這個帳戶"
|
moveFrom: "從其他帳戶遷移到這個帳戶"
|
||||||
|
@ -2740,6 +2738,3 @@ _selfXssPrevention:
|
||||||
description1: "如果您在此處貼上任何內容,惡意使用者可能會接管您的帳戶或竊取您的個人資訊。"
|
description1: "如果您在此處貼上任何內容,惡意使用者可能會接管您的帳戶或竊取您的個人資訊。"
|
||||||
description2: "如果您不確切知道要貼上的內容,%c 請立即停止工作並關閉此視窗。"
|
description2: "如果您不確切知道要貼上的內容,%c 請立即停止工作並關閉此視窗。"
|
||||||
description3: "細節請看這裡。{link}"
|
description3: "細節請看這裡。{link}"
|
||||||
_followRequest:
|
|
||||||
recieved: "收到的請求"
|
|
||||||
sent: "送出的請求"
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "2024.11.0-yumechinokuni.5",
|
"version": "2024.11.0-yumechinokuni.4p1",
|
||||||
"codename": "nasubi",
|
"codename": "nasubi",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
/*
|
|
||||||
* SPDX-FileCopyrightText: syuilo and misskey-project and yumechi
|
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
|
||||||
*/
|
|
||||||
|
|
||||||
export class IndexUserDeleted1732071810971 {
|
|
||||||
name = 'IndexUserDeleted1732071810971'
|
|
||||||
|
|
||||||
async up(queryRunner) {
|
|
||||||
await queryRunner.query(`CREATE INDEX IF NOT EXISTS "IDX_199b79e682bdc5ba946f491686" ON "user" ("isDeleted")`);
|
|
||||||
}
|
|
||||||
|
|
||||||
async down(queryRunner) {
|
|
||||||
await queryRunner.query(`DROP INDEX IF EXISTS "IDX_199b79e682bdc5ba946f491686"`);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -154,9 +154,9 @@ export class AbuseReportNotificationService implements OnApplicationShutdown {
|
||||||
const convertedReports = abuseReports.map(it => {
|
const convertedReports = abuseReports.map(it => {
|
||||||
return {
|
return {
|
||||||
...it,
|
...it,
|
||||||
reporter: usersMap.get(it.reporterId) ?? null,
|
reporter: usersMap.get(it.reporterId),
|
||||||
targetUser: usersMap.get(it.targetUserId) ?? null,
|
targetUser: usersMap.get(it.targetUserId),
|
||||||
assignee: it.assigneeId ? (usersMap.get(it.assigneeId) ?? null) : null,
|
assignee: it.assigneeId ? usersMap.get(it.assigneeId) : null,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ import { GlobalEventService } from './GlobalEventService.js';
|
||||||
import { HashtagService } from './HashtagService.js';
|
import { HashtagService } from './HashtagService.js';
|
||||||
import { HttpRequestService } from './HttpRequestService.js';
|
import { HttpRequestService } from './HttpRequestService.js';
|
||||||
import { IdService } from './IdService.js';
|
import { IdService } from './IdService.js';
|
||||||
import { __YUME_PRIVATE_ImageProcessingService } from './ImageProcessingService.js';
|
import { ImageProcessingService } from './ImageProcessingService.js';
|
||||||
import { InstanceActorService } from './InstanceActorService.js';
|
import { InstanceActorService } from './InstanceActorService.js';
|
||||||
import { InternalStorageService } from './InternalStorageService.js';
|
import { InternalStorageService } from './InternalStorageService.js';
|
||||||
import { MetaService } from './MetaService.js';
|
import { MetaService } from './MetaService.js';
|
||||||
|
@ -67,7 +67,7 @@ import { UserMutingService } from './UserMutingService.js';
|
||||||
import { UserRenoteMutingService } from './UserRenoteMutingService.js';
|
import { UserRenoteMutingService } from './UserRenoteMutingService.js';
|
||||||
import { UserSuspendService } from './UserSuspendService.js';
|
import { UserSuspendService } from './UserSuspendService.js';
|
||||||
import { UserAuthService } from './UserAuthService.js';
|
import { UserAuthService } from './UserAuthService.js';
|
||||||
import { __YUME_PRIVATE_VideoProcessingService } from './VideoProcessingService.js';
|
import { VideoProcessingService } from './VideoProcessingService.js';
|
||||||
import { UserWebhookService } from './UserWebhookService.js';
|
import { UserWebhookService } from './UserWebhookService.js';
|
||||||
import { ProxyAccountService } from './ProxyAccountService.js';
|
import { ProxyAccountService } from './ProxyAccountService.js';
|
||||||
import { UtilityService } from './UtilityService.js';
|
import { UtilityService } from './UtilityService.js';
|
||||||
|
@ -179,7 +179,7 @@ const $GlobalEventService: Provider = { provide: 'GlobalEventService', useExisti
|
||||||
const $HashtagService: Provider = { provide: 'HashtagService', useExisting: HashtagService };
|
const $HashtagService: Provider = { provide: 'HashtagService', useExisting: HashtagService };
|
||||||
const $HttpRequestService: Provider = { provide: 'HttpRequestService', useExisting: HttpRequestService };
|
const $HttpRequestService: Provider = { provide: 'HttpRequestService', useExisting: HttpRequestService };
|
||||||
const $IdService: Provider = { provide: 'IdService', useExisting: IdService };
|
const $IdService: Provider = { provide: 'IdService', useExisting: IdService };
|
||||||
const $ImageProcessingService: Provider = { provide: '__YUME_PRIVATE_ImageProcessingService', useExisting: __YUME_PRIVATE_ImageProcessingService };
|
const $ImageProcessingService: Provider = { provide: 'ImageProcessingService', useExisting: ImageProcessingService };
|
||||||
const $InstanceActorService: Provider = { provide: 'InstanceActorService', useExisting: InstanceActorService };
|
const $InstanceActorService: Provider = { provide: 'InstanceActorService', useExisting: InstanceActorService };
|
||||||
const $InternalStorageService: Provider = { provide: 'InternalStorageService', useExisting: InternalStorageService };
|
const $InternalStorageService: Provider = { provide: 'InternalStorageService', useExisting: InternalStorageService };
|
||||||
const $MetaService: Provider = { provide: 'MetaService', useExisting: MetaService };
|
const $MetaService: Provider = { provide: 'MetaService', useExisting: MetaService };
|
||||||
|
@ -212,7 +212,7 @@ const $UserRenoteMutingService: Provider = { provide: 'UserRenoteMutingService',
|
||||||
const $UserSearchService: Provider = { provide: 'UserSearchService', useExisting: UserSearchService };
|
const $UserSearchService: Provider = { provide: 'UserSearchService', useExisting: UserSearchService };
|
||||||
const $UserSuspendService: Provider = { provide: 'UserSuspendService', useExisting: UserSuspendService };
|
const $UserSuspendService: Provider = { provide: 'UserSuspendService', useExisting: UserSuspendService };
|
||||||
const $UserAuthService: Provider = { provide: 'UserAuthService', useExisting: UserAuthService };
|
const $UserAuthService: Provider = { provide: 'UserAuthService', useExisting: UserAuthService };
|
||||||
const $VideoProcessingService: Provider = { provide: '__YUME_PRIVATE_VideoProcessingService', useExisting: __YUME_PRIVATE_VideoProcessingService };
|
const $VideoProcessingService: Provider = { provide: 'VideoProcessingService', useExisting: VideoProcessingService };
|
||||||
const $UserWebhookService: Provider = { provide: 'UserWebhookService', useExisting: UserWebhookService };
|
const $UserWebhookService: Provider = { provide: 'UserWebhookService', useExisting: UserWebhookService };
|
||||||
const $SystemWebhookService: Provider = { provide: 'SystemWebhookService', useExisting: SystemWebhookService };
|
const $SystemWebhookService: Provider = { provide: 'SystemWebhookService', useExisting: SystemWebhookService };
|
||||||
const $WebhookTestService: Provider = { provide: 'WebhookTestService', useExisting: WebhookTestService };
|
const $WebhookTestService: Provider = { provide: 'WebhookTestService', useExisting: WebhookTestService };
|
||||||
|
@ -330,7 +330,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
||||||
HashtagService,
|
HashtagService,
|
||||||
HttpRequestService,
|
HttpRequestService,
|
||||||
IdService,
|
IdService,
|
||||||
__YUME_PRIVATE_ImageProcessingService,
|
ImageProcessingService,
|
||||||
InstanceActorService,
|
InstanceActorService,
|
||||||
InternalStorageService,
|
InternalStorageService,
|
||||||
MetaService,
|
MetaService,
|
||||||
|
@ -363,7 +363,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
||||||
UserSearchService,
|
UserSearchService,
|
||||||
UserSuspendService,
|
UserSuspendService,
|
||||||
UserAuthService,
|
UserAuthService,
|
||||||
__YUME_PRIVATE_VideoProcessingService,
|
VideoProcessingService,
|
||||||
UserWebhookService,
|
UserWebhookService,
|
||||||
SystemWebhookService,
|
SystemWebhookService,
|
||||||
WebhookTestService,
|
WebhookTestService,
|
||||||
|
@ -625,7 +625,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
||||||
HashtagService,
|
HashtagService,
|
||||||
HttpRequestService,
|
HttpRequestService,
|
||||||
IdService,
|
IdService,
|
||||||
__YUME_PRIVATE_ImageProcessingService,
|
ImageProcessingService,
|
||||||
InstanceActorService,
|
InstanceActorService,
|
||||||
InternalStorageService,
|
InternalStorageService,
|
||||||
MetaService,
|
MetaService,
|
||||||
|
@ -658,7 +658,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
||||||
UserSearchService,
|
UserSearchService,
|
||||||
UserSuspendService,
|
UserSuspendService,
|
||||||
UserAuthService,
|
UserAuthService,
|
||||||
__YUME_PRIVATE_VideoProcessingService,
|
VideoProcessingService,
|
||||||
UserWebhookService,
|
UserWebhookService,
|
||||||
SystemWebhookService,
|
SystemWebhookService,
|
||||||
WebhookTestService,
|
WebhookTestService,
|
||||||
|
|
|
@ -47,10 +47,6 @@ export class DeleteAccountService {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(await this.usersRepository.update({ id: user.id, isDeleted: false }, { isDeleted: true })).affected) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 物理削除する前にDelete activityを送信する
|
// 物理削除する前にDelete activityを送信する
|
||||||
if (this.userEntityService.isLocalUser(user)) {
|
if (this.userEntityService.isLocalUser(user)) {
|
||||||
// 知り得る全SharedInboxにDelete配信
|
// 知り得る全SharedInboxにDelete配信
|
||||||
|
|
|
@ -22,8 +22,8 @@ import { FILE_TYPE_BROWSERSAFE } from '@/const.js';
|
||||||
import { IdentifiableError } from '@/misc/identifiable-error.js';
|
import { IdentifiableError } from '@/misc/identifiable-error.js';
|
||||||
import { contentDisposition } from '@/misc/content-disposition.js';
|
import { contentDisposition } from '@/misc/content-disposition.js';
|
||||||
import { GlobalEventService } from '@/core/GlobalEventService.js';
|
import { GlobalEventService } from '@/core/GlobalEventService.js';
|
||||||
import { __YUME_PRIVATE_VideoProcessingService } from '@/core/VideoProcessingService.js';
|
import { VideoProcessingService } from '@/core/VideoProcessingService.js';
|
||||||
import { __YUME_PRIVATE_ImageProcessingService } from '@/core/ImageProcessingService.js';
|
import { ImageProcessingService } from '@/core/ImageProcessingService.js';
|
||||||
import type { IImage } from '@/core/ImageProcessingService.js';
|
import type { IImage } from '@/core/ImageProcessingService.js';
|
||||||
import { QueueService } from '@/core/QueueService.js';
|
import { QueueService } from '@/core/QueueService.js';
|
||||||
import type { MiDriveFolder } from '@/models/DriveFolder.js';
|
import type { MiDriveFolder } from '@/models/DriveFolder.js';
|
||||||
|
@ -120,8 +120,8 @@ export class DriveService {
|
||||||
private downloadService: DownloadService,
|
private downloadService: DownloadService,
|
||||||
private internalStorageService: InternalStorageService,
|
private internalStorageService: InternalStorageService,
|
||||||
private s3Service: S3Service,
|
private s3Service: S3Service,
|
||||||
private privateImageProcessingService: __YUME_PRIVATE_ImageProcessingService,
|
private imageProcessingService: ImageProcessingService,
|
||||||
private privateVideoProcessingService: __YUME_PRIVATE_VideoProcessingService,
|
private videoProcessingService: VideoProcessingService,
|
||||||
private globalEventService: GlobalEventService,
|
private globalEventService: GlobalEventService,
|
||||||
private queueService: QueueService,
|
private queueService: QueueService,
|
||||||
private roleService: RoleService,
|
private roleService: RoleService,
|
||||||
|
@ -277,7 +277,7 @@ export class DriveService {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const thumbnail = await this.privateVideoProcessingService.generateVideoThumbnail(path);
|
const thumbnail = await this.videoProcessingService.generateVideoThumbnail(path);
|
||||||
return {
|
return {
|
||||||
webpublic: null,
|
webpublic: null,
|
||||||
thumbnail,
|
thumbnail,
|
||||||
|
@ -331,9 +331,9 @@ export class DriveService {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (['image/jpeg', 'image/webp', 'image/avif'].includes(type)) {
|
if (['image/jpeg', 'image/webp', 'image/avif'].includes(type)) {
|
||||||
webpublic = await this.privateImageProcessingService.convertSharpToWebp(img, 2048, 2048);
|
webpublic = await this.imageProcessingService.convertSharpToWebp(img, 2048, 2048);
|
||||||
} else if (['image/png', 'image/bmp', 'image/svg+xml'].includes(type)) {
|
} else if (['image/png', 'image/bmp', 'image/svg+xml'].includes(type)) {
|
||||||
webpublic = await this.privateImageProcessingService.convertSharpToPng(img, 2048, 2048);
|
webpublic = await this.imageProcessingService.convertSharpToPng(img, 2048, 2048);
|
||||||
} else {
|
} else {
|
||||||
this.registerLogger.debug('web image not created (not an required image)');
|
this.registerLogger.debug('web image not created (not an required image)');
|
||||||
}
|
}
|
||||||
|
@ -352,9 +352,9 @@ export class DriveService {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (isAnimated) {
|
if (isAnimated) {
|
||||||
thumbnail = await this.privateImageProcessingService.convertSharpToWebp(sharp(path, { animated: true }), 374, 317, { alphaQuality: 70 });
|
thumbnail = await this.imageProcessingService.convertSharpToWebp(sharp(path, { animated: true }), 374, 317, { alphaQuality: 70 });
|
||||||
} else {
|
} else {
|
||||||
thumbnail = await this.privateImageProcessingService.convertSharpToWebp(img, 498, 422);
|
thumbnail = await this.imageProcessingService.convertSharpToWebp(img, 498, 422);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.registerLogger.warn('thumbnail not created (an error occurred)', err as Error);
|
this.registerLogger.warn('thumbnail not created (an error occurred)', err as Error);
|
||||||
|
|
|
@ -46,9 +46,7 @@ import { bindThis } from '@/decorators.js';
|
||||||
import { Readable } from 'node:stream';
|
import { Readable } from 'node:stream';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
// Prevent accidental import by upstream merge
|
export class ImageProcessingService {
|
||||||
// eslint-disable-next-line
|
|
||||||
export class __YUME_PRIVATE_ImageProcessingService {
|
|
||||||
constructor(
|
constructor(
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,15 +7,13 @@ import { randomUUID } from 'node:crypto';
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import type { IActivity } from '@/core/activitypub/type.js';
|
import type { IActivity } from '@/core/activitypub/type.js';
|
||||||
import type { MiDriveFile } from '@/models/DriveFile.js';
|
import type { MiDriveFile } from '@/models/DriveFile.js';
|
||||||
import type { MiWebhook, WebhookEventTypes } from '@/models/Webhook.js';
|
import type { MiWebhook, WebhookEventTypes, webhookEventTypes } from '@/models/Webhook.js';
|
||||||
import type { MiSystemWebhook, SystemWebhookEventType } from '@/models/SystemWebhook.js';
|
import type { MiSystemWebhook, SystemWebhookEventType } from '@/models/SystemWebhook.js';
|
||||||
import type { Config } from '@/config.js';
|
import type { Config } from '@/config.js';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import type { Antenna } from '@/server/api/endpoints/i/import-antennas.js';
|
import type { Antenna } from '@/server/api/endpoints/i/import-antennas.js';
|
||||||
import { ApRequestCreator } from '@/core/activitypub/ApRequestService.js';
|
import { ApRequestCreator } from '@/core/activitypub/ApRequestService.js';
|
||||||
import { type SystemWebhookPayload } from '@/core/SystemWebhookService.js';
|
|
||||||
import { type UserWebhookPayload } from './UserWebhookService.js';
|
|
||||||
import type {
|
import type {
|
||||||
DbJobData,
|
DbJobData,
|
||||||
DeliverJobData,
|
DeliverJobData,
|
||||||
|
@ -32,11 +30,13 @@ import type {
|
||||||
ObjectStorageQueue,
|
ObjectStorageQueue,
|
||||||
RelationshipQueue,
|
RelationshipQueue,
|
||||||
SystemQueue,
|
SystemQueue,
|
||||||
SystemWebhookDeliverQueue,
|
|
||||||
UserWebhookDeliverQueue,
|
UserWebhookDeliverQueue,
|
||||||
|
SystemWebhookDeliverQueue,
|
||||||
} from './QueueModule.js';
|
} from './QueueModule.js';
|
||||||
import type httpSignature from '@peertube/http-signature';
|
import type httpSignature from '@peertube/http-signature';
|
||||||
import type * as Bull from 'bullmq';
|
import type * as Bull from 'bullmq';
|
||||||
|
import type { Packed } from '@/misc/json-schema.js';
|
||||||
|
import { type UserWebhookPayload } from './UserWebhookService.js';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class QueueService {
|
export class QueueService {
|
||||||
|
@ -502,10 +502,10 @@ export class QueueService {
|
||||||
* @see SystemWebhookDeliverProcessorService
|
* @see SystemWebhookDeliverProcessorService
|
||||||
*/
|
*/
|
||||||
@bindThis
|
@bindThis
|
||||||
public systemWebhookDeliver<T extends SystemWebhookEventType>(
|
public systemWebhookDeliver(
|
||||||
webhook: MiSystemWebhook,
|
webhook: MiSystemWebhook,
|
||||||
type: T,
|
type: SystemWebhookEventType,
|
||||||
content: SystemWebhookPayload<T>,
|
content: unknown,
|
||||||
opts?: { attempts?: number },
|
opts?: { attempts?: number },
|
||||||
) {
|
) {
|
||||||
const data: SystemWebhookDeliverJobData = {
|
const data: SystemWebhookDeliverJobData = {
|
||||||
|
|
|
@ -18,7 +18,6 @@ import { RemoteLoggerService } from '@/core/RemoteLoggerService.js';
|
||||||
import { ApDbResolverService } from '@/core/activitypub/ApDbResolverService.js';
|
import { ApDbResolverService } from '@/core/activitypub/ApDbResolverService.js';
|
||||||
import { ApPersonService } from '@/core/activitypub/models/ApPersonService.js';
|
import { ApPersonService } from '@/core/activitypub/models/ApPersonService.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { ApResolverService } from './activitypub/ApResolverService.js';
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class RemoteUserResolveService {
|
export class RemoteUserResolveService {
|
||||||
|
@ -36,7 +35,6 @@ export class RemoteUserResolveService {
|
||||||
private remoteLoggerService: RemoteLoggerService,
|
private remoteLoggerService: RemoteLoggerService,
|
||||||
private apDbResolverService: ApDbResolverService,
|
private apDbResolverService: ApDbResolverService,
|
||||||
private apPersonService: ApPersonService,
|
private apPersonService: ApPersonService,
|
||||||
private apResolverService: ApResolverService,
|
|
||||||
) {
|
) {
|
||||||
this.logger = this.remoteLoggerService.logger.createSubLogger('resolve-user');
|
this.logger = this.remoteLoggerService.logger.createSubLogger('resolve-user');
|
||||||
}
|
}
|
||||||
|
@ -93,7 +91,7 @@ export class RemoteUserResolveService {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.logger.succ(`return new remote user: ${chalk.magenta(acctLower)}`);
|
this.logger.succ(`return new remote user: ${chalk.magenta(acctLower)}`);
|
||||||
return await this.apPersonService.createPerson(self.href, this.apResolverService.createResolver());
|
return await this.apPersonService.createPerson(self.href);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ユーザー情報が古い場合は、WebFingerからやりなおして返す
|
// ユーザー情報が古い場合は、WebFingerからやりなおして返す
|
||||||
|
|
|
@ -488,7 +488,6 @@ export class RoleService implements OnApplicationShutdown, OnModuleInit {
|
||||||
return ids.length > 0
|
return ids.length > 0
|
||||||
? await this.usersRepository.findBy({
|
? await this.usersRepository.findBy({
|
||||||
id: In(ids),
|
id: In(ids),
|
||||||
isDeleted: false,
|
|
||||||
})
|
})
|
||||||
: [];
|
: [];
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,39 +15,8 @@ import { QueueService } from '@/core/QueueService.js';
|
||||||
import { ModerationLogService } from '@/core/ModerationLogService.js';
|
import { ModerationLogService } from '@/core/ModerationLogService.js';
|
||||||
import { LoggerService } from '@/core/LoggerService.js';
|
import { LoggerService } from '@/core/LoggerService.js';
|
||||||
import Logger from '@/logger.js';
|
import Logger from '@/logger.js';
|
||||||
import { Packed } from '@/misc/json-schema.js';
|
|
||||||
import { AbuseReportResolveType } from '@/models/AbuseUserReport.js';
|
|
||||||
import { ModeratorInactivityRemainingTime } from '@/queue/processors/CheckModeratorsActivityProcessorService.js';
|
|
||||||
import type { OnApplicationShutdown } from '@nestjs/common';
|
import type { OnApplicationShutdown } from '@nestjs/common';
|
||||||
|
|
||||||
export type AbuseReportPayload = {
|
|
||||||
id: string;
|
|
||||||
targetUserId: string;
|
|
||||||
targetUser: Packed<'UserLite'> | null;
|
|
||||||
targetUserHost: string | null;
|
|
||||||
reporterId: string;
|
|
||||||
reporter: Packed<'UserLite'> | null;
|
|
||||||
reporterHost: string | null;
|
|
||||||
assigneeId: string | null;
|
|
||||||
assignee: Packed<'UserLite'> | null;
|
|
||||||
resolved: boolean;
|
|
||||||
forwarded: boolean;
|
|
||||||
comment: string;
|
|
||||||
moderationNote: string;
|
|
||||||
resolvedAs: AbuseReportResolveType | null;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type InactiveModeratorsWarningPayload = {
|
|
||||||
remainingTime: ModeratorInactivityRemainingTime;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type SystemWebhookPayload<T extends SystemWebhookEventType> =
|
|
||||||
T extends 'abuseReport' | 'abuseReportResolved' ? AbuseReportPayload :
|
|
||||||
T extends 'userCreated' ? Packed<'UserLite'> :
|
|
||||||
T extends 'inactiveModeratorsWarning' ? InactiveModeratorsWarningPayload :
|
|
||||||
T extends 'inactiveModeratorsInvitationOnlyChanged' ? Record<string, never> :
|
|
||||||
never;
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class SystemWebhookService implements OnApplicationShutdown {
|
export class SystemWebhookService implements OnApplicationShutdown {
|
||||||
private logger: Logger;
|
private logger: Logger;
|
||||||
|
@ -199,7 +168,7 @@ export class SystemWebhookService implements OnApplicationShutdown {
|
||||||
public async enqueueSystemWebhook<T extends SystemWebhookEventType>(
|
public async enqueueSystemWebhook<T extends SystemWebhookEventType>(
|
||||||
webhook: MiSystemWebhook | MiSystemWebhook['id'],
|
webhook: MiSystemWebhook | MiSystemWebhook['id'],
|
||||||
type: T,
|
type: T,
|
||||||
content: SystemWebhookPayload<T>,
|
content: unknown,
|
||||||
) {
|
) {
|
||||||
const webhookEntity = typeof webhook === 'string'
|
const webhookEntity = typeof webhook === 'string'
|
||||||
? (await this.fetchActiveSystemWebhooks()).find(a => a.id === webhook)
|
? (await this.fetchActiveSystemWebhooks()).find(a => a.id === webhook)
|
||||||
|
|
|
@ -7,21 +7,19 @@ import { Inject, Injectable } from '@nestjs/common';
|
||||||
import FFmpeg from 'fluent-ffmpeg';
|
import FFmpeg from 'fluent-ffmpeg';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import type { Config } from '@/config.js';
|
import type { Config } from '@/config.js';
|
||||||
import { __YUME_PRIVATE_ImageProcessingService } from '@/core/ImageProcessingService.js';
|
import { ImageProcessingService } from '@/core/ImageProcessingService.js';
|
||||||
import type { IImage } from '@/core/ImageProcessingService.js';
|
import type { IImage } from '@/core/ImageProcessingService.js';
|
||||||
import { createTempDir } from '@/misc/create-temp.js';
|
import { createTempDir } from '@/misc/create-temp.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { appendQuery, query } from '@/misc/prelude/url.js';
|
import { appendQuery, query } from '@/misc/prelude/url.js';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
// Prevent accidental import by upstream merge
|
export class VideoProcessingService {
|
||||||
// eslint-disable-next-line
|
|
||||||
export class __YUME_PRIVATE_VideoProcessingService {
|
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(DI.config)
|
@Inject(DI.config)
|
||||||
private config: Config,
|
private config: Config,
|
||||||
|
|
||||||
private imageProcessingService: __YUME_PRIVATE_ImageProcessingService,
|
private imageProcessingService: ImageProcessingService,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { Injectable } from '@nestjs/common';
|
||||||
import { MiAbuseUserReport, MiNote, MiUser, MiWebhook } from '@/models/_.js';
|
import { MiAbuseUserReport, MiNote, MiUser, MiWebhook } from '@/models/_.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { MiSystemWebhook, type SystemWebhookEventType } from '@/models/SystemWebhook.js';
|
import { MiSystemWebhook, type SystemWebhookEventType } from '@/models/SystemWebhook.js';
|
||||||
import { AbuseReportPayload, SystemWebhookPayload, SystemWebhookService } from '@/core/SystemWebhookService.js';
|
import { SystemWebhookService } from '@/core/SystemWebhookService.js';
|
||||||
import { Packed } from '@/misc/json-schema.js';
|
import { Packed } from '@/misc/json-schema.js';
|
||||||
import { type WebhookEventTypes } from '@/models/Webhook.js';
|
import { type WebhookEventTypes } from '@/models/Webhook.js';
|
||||||
import { type UserWebhookPayload, UserWebhookService } from '@/core/UserWebhookService.js';
|
import { type UserWebhookPayload, UserWebhookService } from '@/core/UserWebhookService.js';
|
||||||
|
@ -16,7 +16,13 @@ import { ModeratorInactivityRemainingTime } from '@/queue/processors/CheckModera
|
||||||
|
|
||||||
const oneDayMillis = 24 * 60 * 60 * 1000;
|
const oneDayMillis = 24 * 60 * 60 * 1000;
|
||||||
|
|
||||||
function generateAbuseReport(override?: Partial<MiAbuseUserReport>): AbuseReportPayload {
|
type AbuseUserReportDto = Omit<MiAbuseUserReport, 'targetUser' | 'reporter' | 'assignee'> & {
|
||||||
|
targetUser: Packed<'UserLite'> | null,
|
||||||
|
reporter: Packed<'UserLite'> | null,
|
||||||
|
assignee: Packed<'UserLite'> | null,
|
||||||
|
};
|
||||||
|
|
||||||
|
function generateAbuseReport(override?: Partial<MiAbuseUserReport>): AbuseUserReportDto {
|
||||||
const result: MiAbuseUserReport = {
|
const result: MiAbuseUserReport = {
|
||||||
id: 'dummy-abuse-report1',
|
id: 'dummy-abuse-report1',
|
||||||
targetUserId: 'dummy-target-user',
|
targetUserId: 'dummy-target-user',
|
||||||
|
@ -401,8 +407,7 @@ export class WebhookTestService {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// まだ実装されていない (#9485)
|
// まだ実装されていない (#9485)
|
||||||
case 'reaction':
|
case 'reaction': return;
|
||||||
return;
|
|
||||||
default: {
|
default: {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
const _exhaustiveAssertion: never = params.type;
|
const _exhaustiveAssertion: never = params.type;
|
||||||
|
@ -420,10 +425,10 @@ export class WebhookTestService {
|
||||||
* - 送信対象イベント(on)に関する設定
|
* - 送信対象イベント(on)に関する設定
|
||||||
*/
|
*/
|
||||||
@bindThis
|
@bindThis
|
||||||
public async testSystemWebhook<T extends SystemWebhookEventType>(
|
public async testSystemWebhook(
|
||||||
params: {
|
params: {
|
||||||
webhookId: MiSystemWebhook['id'],
|
webhookId: MiSystemWebhook['id'],
|
||||||
type: T,
|
type: SystemWebhookEventType,
|
||||||
override?: Partial<Omit<MiSystemWebhook, 'id'>>,
|
override?: Partial<Omit<MiSystemWebhook, 'id'>>,
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
|
@ -433,7 +438,7 @@ export class WebhookTestService {
|
||||||
}
|
}
|
||||||
|
|
||||||
const webhook = webhooks[0];
|
const webhook = webhooks[0];
|
||||||
const send = <U extends SystemWebhookEventType>(type: U, contents: SystemWebhookPayload<U>) => {
|
const send = (contents: unknown) => {
|
||||||
const merged = {
|
const merged = {
|
||||||
...webhook,
|
...webhook,
|
||||||
...params.override,
|
...params.override,
|
||||||
|
@ -441,12 +446,12 @@ export class WebhookTestService {
|
||||||
|
|
||||||
// テスト目的なのでSystemWebhookServiceの機能を経由せず直接キューに追加する(チェック処理などをスキップする意図).
|
// テスト目的なのでSystemWebhookServiceの機能を経由せず直接キューに追加する(チェック処理などをスキップする意図).
|
||||||
// また、Jobの試行回数も1回だけ.
|
// また、Jobの試行回数も1回だけ.
|
||||||
this.queueService.systemWebhookDeliver(merged, type, contents, { attempts: 1 });
|
this.queueService.systemWebhookDeliver(merged, params.type, contents, { attempts: 1 });
|
||||||
};
|
};
|
||||||
|
|
||||||
switch (params.type) {
|
switch (params.type) {
|
||||||
case 'abuseReport': {
|
case 'abuseReport': {
|
||||||
send('abuseReport', generateAbuseReport({
|
send(generateAbuseReport({
|
||||||
targetUserId: dummyUser1.id,
|
targetUserId: dummyUser1.id,
|
||||||
targetUser: dummyUser1,
|
targetUser: dummyUser1,
|
||||||
reporterId: dummyUser2.id,
|
reporterId: dummyUser2.id,
|
||||||
|
@ -455,7 +460,7 @@ export class WebhookTestService {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'abuseReportResolved': {
|
case 'abuseReportResolved': {
|
||||||
send('abuseReportResolved', generateAbuseReport({
|
send(generateAbuseReport({
|
||||||
targetUserId: dummyUser1.id,
|
targetUserId: dummyUser1.id,
|
||||||
targetUser: dummyUser1,
|
targetUser: dummyUser1,
|
||||||
reporterId: dummyUser2.id,
|
reporterId: dummyUser2.id,
|
||||||
|
@ -467,7 +472,7 @@ export class WebhookTestService {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'userCreated': {
|
case 'userCreated': {
|
||||||
send('userCreated', toPackedUserLite(dummyUser1));
|
send(toPackedUserLite(dummyUser1));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'inactiveModeratorsWarning': {
|
case 'inactiveModeratorsWarning': {
|
||||||
|
@ -477,20 +482,15 @@ export class WebhookTestService {
|
||||||
asHours: 24,
|
asHours: 24,
|
||||||
};
|
};
|
||||||
|
|
||||||
send('inactiveModeratorsWarning', {
|
send({
|
||||||
remainingTime: dummyTime,
|
remainingTime: dummyTime,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'inactiveModeratorsInvitationOnlyChanged': {
|
case 'inactiveModeratorsInvitationOnlyChanged': {
|
||||||
send('inactiveModeratorsInvitationOnlyChanged', {});
|
send({});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
const _exhaustiveAssertion: never = params.type;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ import { bindThis } from '@/decorators.js';
|
||||||
import type { MiRemoteUser } from '@/models/User.js';
|
import type { MiRemoteUser } from '@/models/User.js';
|
||||||
import { GlobalEventService } from '@/core/GlobalEventService.js';
|
import { GlobalEventService } from '@/core/GlobalEventService.js';
|
||||||
import { AbuseReportService } from '@/core/AbuseReportService.js';
|
import { AbuseReportService } from '@/core/AbuseReportService.js';
|
||||||
import { getApHrefNullable, getApId, getApIds, getApType, isAccept, isActor, isAdd, isAnnounce, isBlock, isCollection, isCollectionOrOrderedCollection, isCreate, isDelete, isFlag, isFollow, isLike, isMove, isPost, isReject, isRemove, isTombstone, isUndo, isUpdate, validActor, validPost, yumeDowncastAccept, yumeDowncastAdd, yumeDowncastAnnounce, yumeDowncastBlock, yumeDowncastCreate, yumeDowncastDelete, yumeDowncastFlag, yumeDowncastFollow, yumeDowncastLike, yumeDowncastMove, yumeDowncastReject, yumeDowncastRemove, yumeDowncastUndo, yumeDowncastUpdate } from './type.js';
|
import { getApHrefNullable, getApId, getApIds, getApType, isAccept, isActor, isAdd, isAnnounce, isBlock, isCollection, isCollectionOrOrderedCollection, isCreate, isDelete, isFlag, isFollow, isLike, isMove, isPost, isReject, isRemove, isTombstone, isUndo, isUpdate, validActor, validPost } from './type.js';
|
||||||
import { ApNoteService } from './models/ApNoteService.js';
|
import { ApNoteService } from './models/ApNoteService.js';
|
||||||
import { ApLoggerService } from './ApLoggerService.js';
|
import { ApLoggerService } from './ApLoggerService.js';
|
||||||
import { ApDbResolverService } from './ApDbResolverService.js';
|
import { ApDbResolverService } from './ApDbResolverService.js';
|
||||||
|
@ -138,93 +138,53 @@ export class ApInboxService {
|
||||||
public async performOneActivity(actor: MiRemoteUser, activity: IObject): Promise<string | void> {
|
public async performOneActivity(actor: MiRemoteUser, activity: IObject): Promise<string | void> {
|
||||||
if (actor.isSuspended) return;
|
if (actor.isSuspended) return;
|
||||||
|
|
||||||
const create = yumeDowncastCreate(activity);
|
if (isCreate(activity)) {
|
||||||
if (create) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'create' });
|
mInboxReceived?.inc({ host: actor.host, type: 'create' });
|
||||||
return await this.create(actor, create);
|
return await this.create(actor, activity);
|
||||||
}
|
} else if (isDelete(activity)) {
|
||||||
|
|
||||||
const update = yumeDowncastUpdate(activity);
|
|
||||||
if (update) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'update' });
|
|
||||||
return await this.update(actor, update);
|
|
||||||
}
|
|
||||||
|
|
||||||
const del = yumeDowncastDelete(activity);
|
|
||||||
if (del) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'delete' });
|
mInboxReceived?.inc({ host: actor.host, type: 'delete' });
|
||||||
return await this.delete(actor, del);
|
return await this.delete(actor, activity);
|
||||||
}
|
} else if (isUpdate(activity)) {
|
||||||
|
mInboxReceived?.inc({ host: actor.host, type: 'update' });
|
||||||
const follow = yumeDowncastFollow(activity);
|
return await this.update(actor, activity);
|
||||||
if (follow) {
|
} else if (isFollow(activity)) {
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'follow' });
|
mInboxReceived?.inc({ host: actor.host, type: 'follow' });
|
||||||
return await this.follow(actor, follow);
|
return await this.follow(actor, activity);
|
||||||
}
|
} else if (isAccept(activity)) {
|
||||||
|
|
||||||
const accept = yumeDowncastAccept(activity);
|
|
||||||
if (accept) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'accept' });
|
mInboxReceived?.inc({ host: actor.host, type: 'accept' });
|
||||||
return await this.accept(actor, accept);
|
return await this.accept(actor, activity);
|
||||||
}
|
} else if (isReject(activity)) {
|
||||||
|
|
||||||
const reject = yumeDowncastReject(activity);
|
|
||||||
if (reject) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'reject' });
|
mInboxReceived?.inc({ host: actor.host, type: 'reject' });
|
||||||
return await this.reject(actor, reject);
|
return await this.reject(actor, activity);
|
||||||
}
|
} else if (isAdd(activity)) {
|
||||||
|
|
||||||
const add = yumeDowncastAdd(activity);
|
|
||||||
if (add) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'add' });
|
mInboxReceived?.inc({ host: actor.host, type: 'add' });
|
||||||
return await this.add(actor, add);
|
return await this.add(actor, activity);
|
||||||
}
|
} else if (isRemove(activity)) {
|
||||||
|
|
||||||
const remove = yumeDowncastRemove(activity);
|
|
||||||
if (remove) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'remove' });
|
mInboxReceived?.inc({ host: actor.host, type: 'remove' });
|
||||||
return await this.remove(actor, remove);
|
return await this.remove(actor, activity);
|
||||||
}
|
} else if (isAnnounce(activity)) {
|
||||||
|
|
||||||
const announce = yumeDowncastAnnounce(activity);
|
|
||||||
if (announce) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'announce' });
|
mInboxReceived?.inc({ host: actor.host, type: 'announce' });
|
||||||
return await this.announce(actor, announce);
|
return await this.announce(actor, activity);
|
||||||
}
|
} else if (isLike(activity)) {
|
||||||
|
|
||||||
const like = yumeDowncastLike(activity);
|
|
||||||
if (like) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'like' });
|
mInboxReceived?.inc({ host: actor.host, type: 'like' });
|
||||||
return await this.like(actor, like);
|
return await this.like(actor, activity);
|
||||||
}
|
} else if (isUndo(activity)) {
|
||||||
|
|
||||||
const move = yumeDowncastMove(activity);
|
|
||||||
if (move) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'move' });
|
|
||||||
return await this.move(actor, move);
|
|
||||||
}
|
|
||||||
|
|
||||||
const undo = yumeDowncastUndo(activity);
|
|
||||||
if (undo) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'undo' });
|
mInboxReceived?.inc({ host: actor.host, type: 'undo' });
|
||||||
return await this.undo(actor, undo);
|
return await this.undo(actor, activity);
|
||||||
}
|
} else if (isBlock(activity)) {
|
||||||
|
|
||||||
const block = yumeDowncastBlock(activity);
|
|
||||||
if (block) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'block' });
|
mInboxReceived?.inc({ host: actor.host, type: 'block' });
|
||||||
return await this.block(actor, block);
|
return await this.block(actor, activity);
|
||||||
}
|
} else if (isFlag(activity)) {
|
||||||
|
|
||||||
const flag = yumeDowncastFlag(activity);
|
|
||||||
if (flag) {
|
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'flag' });
|
mInboxReceived?.inc({ host: actor.host, type: 'flag' });
|
||||||
return await this.flag(actor, flag);
|
return await this.flag(actor, activity);
|
||||||
}
|
} else if (isMove(activity)) {
|
||||||
|
mInboxReceived?.inc({ host: actor.host, type: 'move' });
|
||||||
|
return await this.move(actor, activity);
|
||||||
|
} else {
|
||||||
mInboxReceived?.inc({ host: actor.host, type: 'unknown' });
|
mInboxReceived?.inc({ host: actor.host, type: 'unknown' });
|
||||||
return `unrecognized activity type: ${activity.type}`;
|
return `unrecognized activity type: ${activity.type}`;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
private async follow(actor: MiRemoteUser, activity: IFollow): Promise<string> {
|
private async follow(actor: MiRemoteUser, activity: IFollow): Promise<string> {
|
||||||
|
@ -549,12 +509,19 @@ export class ApInboxService {
|
||||||
return `skip: delete actor ${actor.uri} !== ${uri}`;
|
return `skip: delete actor ${actor.uri} !== ${uri}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(await this.usersRepository.update({ id: actor.id, isDeleted: false }, { isDeleted: true })).affected) {
|
const user = await this.usersRepository.findOneBy({ id: actor.id });
|
||||||
|
if (user == null) {
|
||||||
|
return 'skip: actor not found';
|
||||||
|
} else if (user.isDeleted) {
|
||||||
return 'skip: already deleted';
|
return 'skip: already deleted';
|
||||||
}
|
}
|
||||||
|
|
||||||
const job = await this.queueService.createDeleteAccountJob(actor);
|
const job = await this.queueService.createDeleteAccountJob(actor);
|
||||||
|
|
||||||
|
await this.usersRepository.update(actor.id, {
|
||||||
|
isDeleted: true,
|
||||||
|
});
|
||||||
|
|
||||||
this.globalEventService.publishInternalEvent('remoteUserUpdated', { id: actor.id });
|
this.globalEventService.publishInternalEvent('remoteUserUpdated', { id: actor.id });
|
||||||
|
|
||||||
return `ok: queued ${job.name} ${job.id}`;
|
return `ok: queued ${job.name} ${job.id}`;
|
||||||
|
|
|
@ -30,7 +30,7 @@ import { IdService } from '@/core/IdService.js';
|
||||||
import { JsonLdService } from './JsonLdService.js';
|
import { JsonLdService } from './JsonLdService.js';
|
||||||
import { ApMfmService } from './ApMfmService.js';
|
import { ApMfmService } from './ApMfmService.js';
|
||||||
import { CONTEXT } from './misc/contexts.js';
|
import { CONTEXT } from './misc/contexts.js';
|
||||||
import { markOutgoing, type IAccept, type IActivity, type IAdd, type IAnnounce, type IApDocument, type IApEmoji, type IApHashtag, type IApImage, type IApMention, type IBlock, type ICreate, type IDelete, type IFlag, type IFollow, type IKey, type ILike, type IMove, type IObject, type IPost, type IQuestion, type IReject, type IRemove, type ITombstone, type IUndo, type IUpdate } from './type.js';
|
import type { IAccept, IActivity, IAdd, IAnnounce, IApDocument, IApEmoji, IApHashtag, IApImage, IApMention, IBlock, ICreate, IDelete, IFlag, IFollow, IKey, ILike, IMove, IObject, IPost, IQuestion, IReject, IRemove, ITombstone, IUndo, IUpdate } from './type.js';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ApRendererService {
|
export class ApRendererService {
|
||||||
|
@ -66,21 +66,21 @@ export class ApRendererService {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderAccept(object: string | IObject, user: { id: MiUser['id']; host: null }): IAccept {
|
public renderAccept(object: string | IObject, user: { id: MiUser['id']; host: null }): IAccept {
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Accept',
|
type: 'Accept',
|
||||||
actor: this.userEntityService.genLocalUserUri(user.id),
|
actor: this.userEntityService.genLocalUserUri(user.id),
|
||||||
object,
|
object,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderAdd(user: MiLocalUser, target: string | IObject | undefined, object: string | IObject): IAdd {
|
public renderAdd(user: MiLocalUser, target: string | IObject | undefined, object: string | IObject): IAdd {
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Add',
|
type: 'Add',
|
||||||
actor: this.userEntityService.genLocalUserUri(user.id),
|
actor: this.userEntityService.genLocalUserUri(user.id),
|
||||||
target,
|
target,
|
||||||
object,
|
object,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
|
@ -103,7 +103,7 @@ export class ApRendererService {
|
||||||
throw new Error('renderAnnounce: cannot render non-public note');
|
throw new Error('renderAnnounce: cannot render non-public note');
|
||||||
}
|
}
|
||||||
|
|
||||||
return markOutgoing({
|
return {
|
||||||
id: `${this.config.url}/notes/${note.id}/activity`,
|
id: `${this.config.url}/notes/${note.id}/activity`,
|
||||||
actor: this.userEntityService.genLocalUserUri(note.userId),
|
actor: this.userEntityService.genLocalUserUri(note.userId),
|
||||||
type: 'Announce',
|
type: 'Announce',
|
||||||
|
@ -111,7 +111,7 @@ export class ApRendererService {
|
||||||
to,
|
to,
|
||||||
cc,
|
cc,
|
||||||
object,
|
object,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -125,23 +125,23 @@ export class ApRendererService {
|
||||||
throw new Error('renderBlock: missing blockee uri');
|
throw new Error('renderBlock: missing blockee uri');
|
||||||
}
|
}
|
||||||
|
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Block',
|
type: 'Block',
|
||||||
id: `${this.config.url}/blocks/${block.id}`,
|
id: `${this.config.url}/blocks/${block.id}`,
|
||||||
actor: this.userEntityService.genLocalUserUri(block.blockerId),
|
actor: this.userEntityService.genLocalUserUri(block.blockerId),
|
||||||
object: block.blockee.uri,
|
object: block.blockee.uri,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderCreate(object: IObject, note: MiNote): ICreate {
|
public renderCreate(object: IObject, note: MiNote): ICreate {
|
||||||
const activity: ICreate = markOutgoing({
|
const activity: ICreate = {
|
||||||
id: `${this.config.url}/notes/${note.id}/activity`,
|
id: `${this.config.url}/notes/${note.id}/activity`,
|
||||||
actor: this.userEntityService.genLocalUserUri(note.userId),
|
actor: this.userEntityService.genLocalUserUri(note.userId),
|
||||||
type: 'Create',
|
type: 'Create',
|
||||||
published: this.idService.parse(note.id).date.toISOString(),
|
published: this.idService.parse(note.id).date.toISOString(),
|
||||||
object,
|
object,
|
||||||
}, undefined);
|
};
|
||||||
|
|
||||||
if (object.to) activity.to = object.to;
|
if (object.to) activity.to = object.to;
|
||||||
if (object.cc) activity.cc = object.cc;
|
if (object.cc) activity.cc = object.cc;
|
||||||
|
@ -151,28 +151,28 @@ export class ApRendererService {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderDelete(object: IObject | string, user: { id: MiUser['id']; host: null }): IDelete {
|
public renderDelete(object: IObject | string, user: { id: MiUser['id']; host: null }): IDelete {
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Delete',
|
type: 'Delete',
|
||||||
actor: this.userEntityService.genLocalUserUri(user.id),
|
actor: this.userEntityService.genLocalUserUri(user.id),
|
||||||
object,
|
object,
|
||||||
published: new Date().toISOString(),
|
published: new Date().toISOString(),
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderDocument(file: MiDriveFile): IApDocument {
|
public renderDocument(file: MiDriveFile): IApDocument {
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Document',
|
type: 'Document',
|
||||||
mediaType: file.webpublicType ?? file.type,
|
mediaType: file.webpublicType ?? file.type,
|
||||||
url: this.driveFileEntityService.getPublicUrl(file),
|
url: this.driveFileEntityService.getPublicUrl(file),
|
||||||
name: file.comment,
|
name: file.comment,
|
||||||
sensitive: file.isSensitive,
|
sensitive: file.isSensitive,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderEmoji(emoji: MiEmoji): IApEmoji {
|
public renderEmoji(emoji: MiEmoji): IApEmoji {
|
||||||
return markOutgoing( {
|
return {
|
||||||
id: `${this.config.url}/emojis/${emoji.name}`,
|
id: `${this.config.url}/emojis/${emoji.name}`,
|
||||||
type: 'Emoji',
|
type: 'Emoji',
|
||||||
name: `:${emoji.name}:`,
|
name: `:${emoji.name}:`,
|
||||||
|
@ -183,28 +183,28 @@ export class ApRendererService {
|
||||||
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
||||||
url: emoji.publicUrl || emoji.originalUrl,
|
url: emoji.publicUrl || emoji.originalUrl,
|
||||||
},
|
},
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// to anonymise reporters, the reporting actor must be a system user
|
// to anonymise reporters, the reporting actor must be a system user
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderFlag(user: MiLocalUser, object: IObject | string, content: string): IFlag {
|
public renderFlag(user: MiLocalUser, object: IObject | string, content: string): IFlag {
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Flag',
|
type: 'Flag',
|
||||||
actor: this.userEntityService.genLocalUserUri(user.id),
|
actor: this.userEntityService.genLocalUserUri(user.id),
|
||||||
content,
|
content,
|
||||||
object,
|
object,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderFollowRelay(relay: MiRelay, relayActor: MiLocalUser): IFollow {
|
public renderFollowRelay(relay: MiRelay, relayActor: MiLocalUser): IFollow {
|
||||||
return markOutgoing({
|
return {
|
||||||
id: `${this.config.url}/activities/follow-relay/${relay.id}`,
|
id: `${this.config.url}/activities/follow-relay/${relay.id}`,
|
||||||
type: 'Follow',
|
type: 'Follow',
|
||||||
actor: this.userEntityService.genLocalUserUri(relayActor.id),
|
actor: this.userEntityService.genLocalUserUri(relayActor.id),
|
||||||
object: 'https://www.w3.org/ns/activitystreams#Public',
|
object: 'https://www.w3.org/ns/activitystreams#Public',
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -223,36 +223,36 @@ export class ApRendererService {
|
||||||
followee: MiPartialLocalUser | MiPartialRemoteUser,
|
followee: MiPartialLocalUser | MiPartialRemoteUser,
|
||||||
requestId?: string,
|
requestId?: string,
|
||||||
): IFollow {
|
): IFollow {
|
||||||
return markOutgoing({
|
return {
|
||||||
id: requestId ?? `${this.config.url}/follows/${follower.id}/${followee.id}`,
|
id: requestId ?? `${this.config.url}/follows/${follower.id}/${followee.id}`,
|
||||||
type: 'Follow',
|
type: 'Follow',
|
||||||
actor: this.userEntityService.getUserUri(follower),
|
actor: this.userEntityService.getUserUri(follower),
|
||||||
object: this.userEntityService.getUserUri(followee),
|
object: this.userEntityService.getUserUri(followee),
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderHashtag(tag: string): IApHashtag {
|
public renderHashtag(tag: string): IApHashtag {
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Hashtag',
|
type: 'Hashtag',
|
||||||
href: `${this.config.url}/tags/${encodeURIComponent(tag)}`,
|
href: `${this.config.url}/tags/${encodeURIComponent(tag)}`,
|
||||||
name: `#${tag}`,
|
name: `#${tag}`,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderImage(file: MiDriveFile): IApImage {
|
public renderImage(file: MiDriveFile): IApImage {
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Image',
|
type: 'Image',
|
||||||
url: this.driveFileEntityService.getPublicUrl(file),
|
url: this.driveFileEntityService.getPublicUrl(file),
|
||||||
sensitive: file.isSensitive,
|
sensitive: file.isSensitive,
|
||||||
name: file.comment,
|
name: file.comment,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderKey(user: MiLocalUser, key: MiUserKeypair, postfix?: string): IKey {
|
public renderKey(user: MiLocalUser, key: MiUserKeypair, postfix?: string): IKey {
|
||||||
return markOutgoing({
|
return {
|
||||||
id: `${this.config.url}/users/${user.id}${postfix ?? '/publickey'}`,
|
id: `${this.config.url}/users/${user.id}${postfix ?? '/publickey'}`,
|
||||||
type: 'Key',
|
type: 'Key',
|
||||||
owner: this.userEntityService.genLocalUserUri(user.id),
|
owner: this.userEntityService.genLocalUserUri(user.id),
|
||||||
|
@ -260,21 +260,21 @@ export class ApRendererService {
|
||||||
type: 'spki',
|
type: 'spki',
|
||||||
format: 'pem',
|
format: 'pem',
|
||||||
}),
|
}),
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async renderLike(noteReaction: MiNoteReaction, note: { uri: string | null }): Promise<ILike> {
|
public async renderLike(noteReaction: MiNoteReaction, note: { uri: string | null }): Promise<ILike> {
|
||||||
const reaction = noteReaction.reaction;
|
const reaction = noteReaction.reaction;
|
||||||
|
|
||||||
const object: ILike = markOutgoing({
|
const object: ILike = {
|
||||||
type: 'Like',
|
type: 'Like',
|
||||||
id: `${this.config.url}/likes/${noteReaction.id}`,
|
id: `${this.config.url}/likes/${noteReaction.id}`,
|
||||||
actor: `${this.config.url}/users/${noteReaction.userId}`,
|
actor: `${this.config.url}/users/${noteReaction.userId}`,
|
||||||
object: note.uri ? note.uri : `${this.config.url}/notes/${noteReaction.noteId}`,
|
object: note.uri ? note.uri : `${this.config.url}/notes/${noteReaction.noteId}`,
|
||||||
content: reaction,
|
content: reaction,
|
||||||
_misskey_reaction: reaction,
|
_misskey_reaction: reaction,
|
||||||
}, undefined);
|
};
|
||||||
|
|
||||||
if (reaction.startsWith(':')) {
|
if (reaction.startsWith(':')) {
|
||||||
const name = reaction.replaceAll(':', '');
|
const name = reaction.replaceAll(':', '');
|
||||||
|
@ -288,11 +288,11 @@ export class ApRendererService {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderMention(mention: MiPartialLocalUser | MiPartialRemoteUser): IApMention {
|
public renderMention(mention: MiPartialLocalUser | MiPartialRemoteUser): IApMention {
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Mention',
|
type: 'Mention',
|
||||||
href: this.userEntityService.getUserUri(mention),
|
href: this.userEntityService.getUserUri(mention),
|
||||||
name: this.userEntityService.isRemoteUser(mention) ? `@${mention.username}@${mention.host}` : `@${(mention as MiLocalUser).username}`,
|
name: this.userEntityService.isRemoteUser(mention) ? `@${mention.username}@${mention.host}` : `@${(mention as MiLocalUser).username}`,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
|
@ -302,13 +302,13 @@ export class ApRendererService {
|
||||||
): IMove {
|
): IMove {
|
||||||
const actor = this.userEntityService.getUserUri(src);
|
const actor = this.userEntityService.getUserUri(src);
|
||||||
const target = this.userEntityService.getUserUri(dst);
|
const target = this.userEntityService.getUserUri(dst);
|
||||||
return markOutgoing({
|
return {
|
||||||
id: `${this.config.url}/moves/${src.id}/${dst.id}`,
|
id: `${this.config.url}/moves/${src.id}/${dst.id}`,
|
||||||
actor,
|
actor,
|
||||||
type: 'Move',
|
type: 'Move',
|
||||||
object: actor,
|
object: actor,
|
||||||
target,
|
target,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
|
@ -422,7 +422,7 @@ export class ApRendererService {
|
||||||
})),
|
})),
|
||||||
} as const : {};
|
} as const : {};
|
||||||
|
|
||||||
return markOutgoing({
|
return {
|
||||||
id: `${this.config.url}/notes/${note.id}`,
|
id: `${this.config.url}/notes/${note.id}`,
|
||||||
type: 'Note',
|
type: 'Note',
|
||||||
attributedTo,
|
attributedTo,
|
||||||
|
@ -445,7 +445,7 @@ export class ApRendererService {
|
||||||
sensitive: note.cw != null || files.some(file => file.isSensitive),
|
sensitive: note.cw != null || files.some(file => file.isSensitive),
|
||||||
tag,
|
tag,
|
||||||
...asPoll,
|
...asPoll,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
|
@ -529,7 +529,7 @@ export class ApRendererService {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderQuestion(user: { id: MiUser['id'] }, note: MiNote, poll: MiPoll): IQuestion {
|
public renderQuestion(user: { id: MiUser['id'] }, note: MiNote, poll: MiPoll): IQuestion {
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Question',
|
type: 'Question',
|
||||||
id: `${this.config.url}/questions/${note.id}`,
|
id: `${this.config.url}/questions/${note.id}`,
|
||||||
actor: this.userEntityService.genLocalUserUri(user.id),
|
actor: this.userEntityService.genLocalUserUri(user.id),
|
||||||
|
@ -542,78 +542,78 @@ export class ApRendererService {
|
||||||
totalItems: poll.votes[i],
|
totalItems: poll.votes[i],
|
||||||
},
|
},
|
||||||
})),
|
})),
|
||||||
}, 'question');
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderReject(object: string | IObject, user: { id: MiUser['id'] }): IReject {
|
public renderReject(object: string | IObject, user: { id: MiUser['id'] }): IReject {
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Reject',
|
type: 'Reject',
|
||||||
actor: this.userEntityService.genLocalUserUri(user.id),
|
actor: this.userEntityService.genLocalUserUri(user.id),
|
||||||
object,
|
object,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderRemove(user: { id: MiUser['id'] }, target: string | IObject | undefined, object: string | IObject): IRemove {
|
public renderRemove(user: { id: MiUser['id'] }, target: string | IObject | undefined, object: string | IObject): IRemove {
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Remove',
|
type: 'Remove',
|
||||||
actor: this.userEntityService.genLocalUserUri(user.id),
|
actor: this.userEntityService.genLocalUserUri(user.id),
|
||||||
target,
|
target,
|
||||||
object,
|
object,
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderTombstone(id: string): ITombstone {
|
public renderTombstone(id: string): ITombstone {
|
||||||
return markOutgoing({
|
return {
|
||||||
id,
|
id,
|
||||||
type: 'Tombstone',
|
type: 'Tombstone',
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderUndo(object: string | IObject, user: { id: MiUser['id'] }): IUndo {
|
public renderUndo(object: string | IObject, user: { id: MiUser['id'] }): IUndo {
|
||||||
const id = typeof object !== 'string' && typeof object.id === 'string' && object.id.startsWith(this.config.url) ? `${object.id}/undo` : undefined;
|
const id = typeof object !== 'string' && typeof object.id === 'string' && object.id.startsWith(this.config.url) ? `${object.id}/undo` : undefined;
|
||||||
|
|
||||||
return markOutgoing({
|
return {
|
||||||
type: 'Undo',
|
type: 'Undo',
|
||||||
...(id ? { id } : {}),
|
...(id ? { id } : {}),
|
||||||
actor: this.userEntityService.genLocalUserUri(user.id),
|
actor: this.userEntityService.genLocalUserUri(user.id),
|
||||||
object,
|
object,
|
||||||
published: new Date().toISOString(),
|
published: new Date().toISOString(),
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderUpdate(object: string | IObject, user: { id: MiUser['id'] }): IUpdate {
|
public renderUpdate(object: string | IObject, user: { id: MiUser['id'] }): IUpdate {
|
||||||
return markOutgoing( {
|
return {
|
||||||
id: `${this.config.url}/users/${user.id}#updates/${new Date().getTime()}`,
|
id: `${this.config.url}/users/${user.id}#updates/${new Date().getTime()}`,
|
||||||
actor: this.userEntityService.genLocalUserUri(user.id),
|
actor: this.userEntityService.genLocalUserUri(user.id),
|
||||||
type: 'Update',
|
type: 'Update',
|
||||||
to: ['https://www.w3.org/ns/activitystreams#Public'],
|
to: ['https://www.w3.org/ns/activitystreams#Public'],
|
||||||
object,
|
object,
|
||||||
published: new Date().toISOString(),
|
published: new Date().toISOString(),
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public renderVote(user: { id: MiUser['id'] }, vote: MiPollVote, note: MiNote, poll: MiPoll, pollOwner: MiRemoteUser): ICreate {
|
public renderVote(user: { id: MiUser['id'] }, vote: MiPollVote, note: MiNote, poll: MiPoll, pollOwner: MiRemoteUser): ICreate {
|
||||||
return markOutgoing({
|
return {
|
||||||
id: `${this.config.url}/users/${user.id}#votes/${vote.id}/activity`,
|
id: `${this.config.url}/users/${user.id}#votes/${vote.id}/activity`,
|
||||||
actor: this.userEntityService.genLocalUserUri(user.id),
|
actor: this.userEntityService.genLocalUserUri(user.id),
|
||||||
type: 'Create',
|
type: 'Create',
|
||||||
to: [pollOwner.uri],
|
to: [pollOwner.uri],
|
||||||
published: new Date().toISOString(),
|
published: new Date().toISOString(),
|
||||||
object: markOutgoing({
|
object: {
|
||||||
id: `${this.config.url}/users/${user.id}#votes/${vote.id}`,
|
id: `${this.config.url}/users/${user.id}#votes/${vote.id}`,
|
||||||
type: 'Note',
|
type: 'Note',
|
||||||
attributedTo: this.userEntityService.genLocalUserUri(user.id),
|
attributedTo: this.userEntityService.genLocalUserUri(user.id),
|
||||||
to: [pollOwner.uri],
|
to: [pollOwner.uri],
|
||||||
inReplyTo: note.uri,
|
inReplyTo: note.uri,
|
||||||
name: poll.choices[vote.choice],
|
name: poll.choices[vote.choice],
|
||||||
}, undefined),
|
},
|
||||||
}, undefined);
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
|
|
|
@ -16,11 +16,11 @@ import { UtilityService } from '@/core/UtilityService.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { LoggerService } from '@/core/LoggerService.js';
|
import { LoggerService } from '@/core/LoggerService.js';
|
||||||
import type Logger from '@/logger.js';
|
import type Logger from '@/logger.js';
|
||||||
import { isCollectionOrOrderedCollection, yumeNormalizeObject } from './type.js';
|
import { isCollectionOrOrderedCollection } from './type.js';
|
||||||
import { ApDbResolverService } from './ApDbResolverService.js';
|
import { ApDbResolverService } from './ApDbResolverService.js';
|
||||||
import { ApRendererService } from './ApRendererService.js';
|
import { ApRendererService } from './ApRendererService.js';
|
||||||
import { ApRequestService } from './ApRequestService.js';
|
import { ApRequestService } from './ApRequestService.js';
|
||||||
import type { IObject, ICollection, IOrderedCollection, IUnsanitizedObject } from './type.js';
|
import type { IObject, ICollection, IOrderedCollection } from './type.js';
|
||||||
|
|
||||||
export class Resolver {
|
export class Resolver {
|
||||||
private history: Set<string>;
|
private history: Set<string>;
|
||||||
|
@ -67,7 +67,7 @@ export class Resolver {
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async resolveNotNormalized(value: string | IObject): Promise<IUnsanitizedObject> {
|
public async resolve(value: string | IObject): Promise<IObject> {
|
||||||
if (typeof value !== 'string') {
|
if (typeof value !== 'string') {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -117,13 +117,6 @@ export class Resolver {
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
|
||||||
public async resolve(value: string | IObject): Promise<IObject> {
|
|
||||||
const object = await this.resolveNotNormalized(value);
|
|
||||||
|
|
||||||
return yumeNormalizeObject(object);
|
|
||||||
}
|
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
private resolveLocal(url: string): Promise<IObject> {
|
private resolveLocal(url: string): Promise<IObject> {
|
||||||
const parsed = this.apDbResolverService.parseUri(url);
|
const parsed = this.apDbResolverService.parseUri(url);
|
||||||
|
|
|
@ -115,7 +115,10 @@ export class ApNoteService {
|
||||||
* Noteを作成します。
|
* Noteを作成します。
|
||||||
*/
|
*/
|
||||||
@bindThis
|
@bindThis
|
||||||
public async createNote(value: string | IObject, resolver: Resolver, silent = false): Promise<MiNote | null> {
|
public async createNote(value: string | IObject, resolver?: Resolver, silent = false): Promise<MiNote | null> {
|
||||||
|
// eslint-disable-next-line no-param-reassign
|
||||||
|
if (resolver == null) resolver = this.apResolverService.createResolver();
|
||||||
|
|
||||||
const object = await resolver.resolve(value);
|
const object = await resolver.resolve(value);
|
||||||
|
|
||||||
const entryUri = getApId(value);
|
const entryUri = getApId(value);
|
||||||
|
@ -353,7 +356,7 @@ export class ApNoteService {
|
||||||
// ここでuriの代わりに添付されてきたNote Objectが指定されていると、サーバーフェッチを経ずにノートが生成されるが
|
// ここでuriの代わりに添付されてきたNote Objectが指定されていると、サーバーフェッチを経ずにノートが生成されるが
|
||||||
// 添付されてきたNote Objectは偽装されている可能性があるため、常にuriを指定してサーバーフェッチを行う。
|
// 添付されてきたNote Objectは偽装されている可能性があるため、常にuriを指定してサーバーフェッチを行う。
|
||||||
const createFrom = options.sentFrom?.origin === new URL(uri).origin ? value : uri;
|
const createFrom = options.sentFrom?.origin === new URL(uri).origin ? value : uri;
|
||||||
return await this.createNote(createFrom, this.apResolverService.createResolver(), true);
|
return await this.createNote(createFrom, options.resolver, true);
|
||||||
} finally {
|
} finally {
|
||||||
unlock();
|
unlock();
|
||||||
}
|
}
|
||||||
|
|
|
@ -277,13 +277,16 @@ export class ApPersonService implements OnModuleInit {
|
||||||
* Personを作成します。
|
* Personを作成します。
|
||||||
*/
|
*/
|
||||||
@bindThis
|
@bindThis
|
||||||
public async createPerson(uri: string, resolver: Resolver): Promise<MiRemoteUser> {
|
public async createPerson(uri: string, resolver?: Resolver): Promise<MiRemoteUser> {
|
||||||
if (typeof uri !== 'string') throw new Error('uri is not string');
|
if (typeof uri !== 'string') throw new Error('uri is not string');
|
||||||
|
|
||||||
if (uri.startsWith(this.config.url)) {
|
if (uri.startsWith(this.config.url)) {
|
||||||
throw new StatusError('cannot resolve local user', 400, 'cannot resolve local user');
|
throw new StatusError('cannot resolve local user', 400, 'cannot resolve local user');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-param-reassign
|
||||||
|
if (resolver == null) resolver = this.apResolverService.createResolver();
|
||||||
|
|
||||||
const object = await resolver.resolve(uri);
|
const object = await resolver.resolve(uri);
|
||||||
if (object.id == null) throw new Error('invalid object.id: ' + object.id);
|
if (object.id == null) throw new Error('invalid object.id: ' + object.id);
|
||||||
|
|
||||||
|
@ -554,9 +557,7 @@ export class ApPersonService implements OnModuleInit {
|
||||||
if (moving) updates.movedAt = new Date();
|
if (moving) updates.movedAt = new Date();
|
||||||
|
|
||||||
// Update user
|
// Update user
|
||||||
if (!(await this.usersRepository.update({ id: exist.id, isDeleted: false }, updates)).affected) {
|
await this.usersRepository.update(exist.id, updates);
|
||||||
return 'skip';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (person.publicKey) {
|
if (person.publicKey) {
|
||||||
await this.userPublickeysRepository.update({ userId: exist.id }, {
|
await this.userPublickeysRepository.update({ userId: exist.id }, {
|
||||||
|
@ -661,7 +662,7 @@ export class ApPersonService implements OnModuleInit {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async updateFeatured(userId: MiUser['id'], resolver?: Resolver): Promise<void> {
|
public async updateFeatured(userId: MiUser['id'], resolver?: Resolver): Promise<void> {
|
||||||
const user = await this.usersRepository.findOneByOrFail({ id: userId, isDeleted: false });
|
const user = await this.usersRepository.findOneByOrFail({ id: userId });
|
||||||
if (!this.userEntityService.isRemoteUser(user)) return;
|
if (!this.userEntityService.isRemoteUser(user)) return;
|
||||||
if (!user.featured) return;
|
if (!user.featured) return;
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,10 @@
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { toASCII } from "node:punycode";
|
|
||||||
|
|
||||||
export type Obj = { [x: string]: any };
|
export type Obj = { [x: string]: any };
|
||||||
export type ApObject = IObject | string | (IObject | string)[];
|
export type ApObject = IObject | string | (IObject | string)[];
|
||||||
|
|
||||||
export interface IUnsanitizedObject {
|
export interface IObject {
|
||||||
'@context'?: string | string[] | Obj | Obj[];
|
'@context'?: string | string[] | Obj | Obj[];
|
||||||
type: string | string[];
|
type: string | string[];
|
||||||
id?: string;
|
id?: string;
|
||||||
|
@ -38,83 +36,6 @@ export interface IUnsanitizedObject {
|
||||||
sensitive?: boolean;
|
sensitive?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IObject extends IUnsanitizedObject {
|
|
||||||
__yume_normalized_object: true | 'outgoing';
|
|
||||||
};
|
|
||||||
|
|
||||||
export interface YumeDowncastSanitizedBadge<L extends 'question' | undefined> {
|
|
||||||
__yume_normalized_badge: L | 'outgoing';
|
|
||||||
};
|
|
||||||
|
|
||||||
export function markOutgoing<T, L extends 'question' | undefined>(object: T, _badge: L): T & IObject & YumeDowncastSanitizedBadge<L> {
|
|
||||||
return object as T & IObject & YumeDowncastSanitizedBadge<L>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeNormalizeURL(url: string): string {
|
|
||||||
const u = new URL(url);
|
|
||||||
u.hash = '';
|
|
||||||
u.host = toASCII(u.host);
|
|
||||||
if (u.protocol && u.protocol !== 'https:') {
|
|
||||||
throw new Error('protocol is not https');
|
|
||||||
}
|
|
||||||
u.protocol = 'https:';
|
|
||||||
if (u.port && u.port !== '443') {
|
|
||||||
throw new Error('port is not 443');
|
|
||||||
}
|
|
||||||
return u.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeNormalizeRecursive<O extends IUnsanitizedObject | string | (IUnsanitizedObject | string)[]>(object: O, depth = 0):
|
|
||||||
IObject | string | (IObject | string)[] {
|
|
||||||
if (depth > 16) {
|
|
||||||
throw new Error('recursion limit exceeded');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof object === 'string') {
|
|
||||||
return yumeNormalizeURL(object);
|
|
||||||
}
|
|
||||||
if (Array.isArray(object)) {
|
|
||||||
if (object.length > 64) {
|
|
||||||
throw new Error('array length limit exceeded');
|
|
||||||
}
|
|
||||||
return object.flatMap(yumeNormalizeRecursive);
|
|
||||||
}
|
|
||||||
|
|
||||||
return yumeNormalizeObject(object);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeNormalizeObject(object: IUnsanitizedObject): IObject {
|
|
||||||
if (object.cc) {
|
|
||||||
object.cc = yumeNormalizeRecursive(object.cc);
|
|
||||||
}
|
|
||||||
if (object.to) {
|
|
||||||
object.to = yumeNormalizeRecursive(object.to);
|
|
||||||
}
|
|
||||||
if (object.attributedTo) {
|
|
||||||
object.attributedTo = yumeNormalizeRecursive(object.attributedTo);
|
|
||||||
}
|
|
||||||
if (object.id) {
|
|
||||||
object.id = yumeNormalizeURL(object.id);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (object.url) {
|
|
||||||
object.url = yumeNormalizeRecursive(object.url);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (object.attachment) {
|
|
||||||
object.attachment = object.attachment.map(yumeNormalizeRecursive);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (object.inReplyTo) {
|
|
||||||
object.inReplyTo = yumeNormalizeRecursive(object.inReplyTo);
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
...object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get array of ActivityStreams Objects id
|
* Get array of ActivityStreams Objects id
|
||||||
*/
|
*/
|
||||||
|
@ -159,7 +80,7 @@ export function getOneApHrefNullable(value: ApObject | undefined): string | unde
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getApHrefNullable(value: string | IObject | undefined): string | undefined {
|
export function getApHrefNullable(value: string | IObject | undefined): string | undefined {
|
||||||
if (typeof value === 'string') return value;
|
if (typeof value === 'string') return value;
|
||||||
if (typeof value?.href === 'string') return value.href;
|
if (typeof value?.href === 'string') return value.href;
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
@ -201,7 +122,7 @@ export const isPost = (object: IObject): object is IPost => {
|
||||||
return type != null && validPost.includes(type);
|
return type != null && validPost.includes(type);
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface IPost extends IObject{
|
export interface IPost extends IObject {
|
||||||
type: 'Note' | 'Question' | 'Article' | 'Audio' | 'Document' | 'Image' | 'Page' | 'Video' | 'Event';
|
type: 'Note' | 'Question' | 'Article' | 'Audio' | 'Document' | 'Image' | 'Page' | 'Video' | 'Event';
|
||||||
source?: {
|
source?: {
|
||||||
content: string;
|
content: string;
|
||||||
|
@ -212,7 +133,7 @@ export interface IPost extends IObject{
|
||||||
quoteUrl?: string;
|
quoteUrl?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IUnsanitizedQuestion extends IObject {
|
export interface IQuestion extends IObject {
|
||||||
type: 'Note' | 'Question';
|
type: 'Note' | 'Question';
|
||||||
actor: string;
|
actor: string;
|
||||||
source?: {
|
source?: {
|
||||||
|
@ -227,25 +148,7 @@ export interface IUnsanitizedQuestion extends IObject {
|
||||||
closed?: Date;
|
closed?: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IQuestion extends IUnsanitizedQuestion, YumeDowncastSanitizedBadge<'question'> {}
|
export const isQuestion = (object: IObject): object is IQuestion =>
|
||||||
|
|
||||||
export function yumeSanitizeQuestion(object: IUnsanitizedQuestion): IQuestion {
|
|
||||||
return {
|
|
||||||
type: object.type,
|
|
||||||
actor: yumeNormalizeURL(object.actor),
|
|
||||||
source: object.source,
|
|
||||||
_misskey_quote: object._misskey_quote,
|
|
||||||
quoteUrl: object.quoteUrl ? yumeNormalizeURL(object.quoteUrl) : '',
|
|
||||||
oneOf: object.oneOf,
|
|
||||||
anyOf: object.anyOf,
|
|
||||||
endTime: object.endTime,
|
|
||||||
closed: object.closed,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
__yume_normalized_badge: 'question',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export const isQuestion = (object: IObject): object is IUnsanitizedQuestion =>
|
|
||||||
getApType(object) === 'Note' || getApType(object) === 'Question';
|
getApType(object) === 'Note' || getApType(object) === 'Question';
|
||||||
|
|
||||||
interface IQuestionChoice {
|
interface IQuestionChoice {
|
||||||
|
@ -446,185 +349,3 @@ export const isBlock = (object: IObject): object is IBlock => getApType(object)
|
||||||
export const isFlag = (object: IObject): object is IFlag => getApType(object) === 'Flag';
|
export const isFlag = (object: IObject): object is IFlag => getApType(object) === 'Flag';
|
||||||
export const isMove = (object: IObject): object is IMove => getApType(object) === 'Move';
|
export const isMove = (object: IObject): object is IMove => getApType(object) === 'Move';
|
||||||
export const isNote = (object: IObject): object is IPost => getApType(object) === 'Note';
|
export const isNote = (object: IObject): object is IPost => getApType(object) === 'Note';
|
||||||
|
|
||||||
export function yumeDowncastCreate(object: IObject): ICreate | null {
|
|
||||||
if (getApType(object) !== 'Create') return null;
|
|
||||||
const obj = object as ICreate;
|
|
||||||
return {
|
|
||||||
type: 'Create',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastDelete(object: IObject): IDelete | null {
|
|
||||||
if (getApType(object) !== 'Delete') return null;
|
|
||||||
const obj = object as IDelete;
|
|
||||||
return {
|
|
||||||
type: 'Delete',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastUpdate(object: IObject): IUpdate | null {
|
|
||||||
if (getApType(object) !== 'Update') return null;
|
|
||||||
const obj = object as IUpdate;
|
|
||||||
return {
|
|
||||||
type: 'Update',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastRead(object: IObject): IRead | null {
|
|
||||||
if (getApType(object) !== 'Read') return null;
|
|
||||||
const obj = object as IRead;
|
|
||||||
return {
|
|
||||||
type: 'Read',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastUndo(object: IObject): IUndo | null {
|
|
||||||
if (getApType(object) !== 'Undo') return null;
|
|
||||||
const obj = object as IUndo;
|
|
||||||
return {
|
|
||||||
type: 'Undo',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastFollow(object: IObject): IFollow | null {
|
|
||||||
if (getApType(object) !== 'Follow') return null;
|
|
||||||
const obj = object as IFollow;
|
|
||||||
return {
|
|
||||||
type: 'Follow',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastAccept(object: IObject): IAccept | null {
|
|
||||||
if (getApType(object) !== 'Accept') return null;
|
|
||||||
const obj = object as IAccept;
|
|
||||||
return {
|
|
||||||
type: 'Accept',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastReject(object: IObject): IReject | null {
|
|
||||||
if (getApType(object) !== 'Reject') return null;
|
|
||||||
const obj = object as IReject;
|
|
||||||
return {
|
|
||||||
type: 'Reject',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastAdd(object: IObject): IAdd | null {
|
|
||||||
if (getApType(object) !== 'Add') return null;
|
|
||||||
const obj = object as IAdd;
|
|
||||||
return {
|
|
||||||
type: 'Add',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
target: obj.target,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastRemove(object: IObject): IRemove | null {
|
|
||||||
if (getApType(object) !== 'Remove') return null;
|
|
||||||
const obj = object as IRemove;
|
|
||||||
return {
|
|
||||||
type: 'Remove',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
target: obj.target,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastLike(object: IObject): ILike | null {
|
|
||||||
if (getApType(object) !== 'Like') return null;
|
|
||||||
const obj = object as ILike;
|
|
||||||
return {
|
|
||||||
type: 'Like',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastAnnounce(object: IObject): IAnnounce | null {
|
|
||||||
if (getApType(object) !== 'Announce') return null;
|
|
||||||
const obj = object as IAnnounce;
|
|
||||||
return {
|
|
||||||
type: 'Announce',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastBlock(object: IObject): IBlock | null {
|
|
||||||
if (getApType(object) !== 'Block') return null;
|
|
||||||
const obj = object as IBlock;
|
|
||||||
return {
|
|
||||||
type: 'Block',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastFlag(object: IObject): IFlag | null {
|
|
||||||
if (getApType(object) !== 'Flag') return null;
|
|
||||||
const obj = object as IFlag;
|
|
||||||
return {
|
|
||||||
type: 'Flag',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export function yumeDowncastMove(object: IObject): IMove | null {
|
|
||||||
if (getApType(object) !== 'Move') return null;
|
|
||||||
const obj = object as IMove;
|
|
||||||
return {
|
|
||||||
type: 'Move',
|
|
||||||
actor: obj.actor,
|
|
||||||
object: obj.object,
|
|
||||||
target: obj.target,
|
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
export function yumeDowncastMention(object: IObject): IApMention {
|
|
||||||
if (getApType(object) !== 'Mention') {
|
|
||||||
throw new Error('not a mention');
|
|
||||||
}
|
|
||||||
|
|
||||||
const href = getApHrefNullable(object);
|
|
||||||
|
|
||||||
return {
|
|
||||||
...object,
|
|
||||||
type: 'Mention',
|
|
||||||
href: href ? yumeNormalizeURL(href) : '',
|
|
||||||
name: object.name ?? '',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ import { bindThis } from '@/decorators.js';
|
||||||
import { isMimeImage } from '@/misc/is-mime-image.js';
|
import { isMimeImage } from '@/misc/is-mime-image.js';
|
||||||
import { IdService } from '@/core/IdService.js';
|
import { IdService } from '@/core/IdService.js';
|
||||||
import { UtilityService } from '../UtilityService.js';
|
import { UtilityService } from '../UtilityService.js';
|
||||||
|
import { VideoProcessingService } from '../VideoProcessingService.js';
|
||||||
import { UserEntityService } from './UserEntityService.js';
|
import { UserEntityService } from './UserEntityService.js';
|
||||||
import { DriveFolderEntityService } from './DriveFolderEntityService.js';
|
import { DriveFolderEntityService } from './DriveFolderEntityService.js';
|
||||||
|
|
||||||
|
@ -42,6 +43,7 @@ export class DriveFileEntityService {
|
||||||
|
|
||||||
private utilityService: UtilityService,
|
private utilityService: UtilityService,
|
||||||
private driveFolderEntityService: DriveFolderEntityService,
|
private driveFolderEntityService: DriveFolderEntityService,
|
||||||
|
private videoProcessingService: VideoProcessingService,
|
||||||
private idService: IdService,
|
private idService: IdService,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
@ -84,7 +86,11 @@ export class DriveFileEntityService {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public getThumbnailUrl(file: MiDriveFile): string | null {
|
public getThumbnailUrl(file: MiDriveFile): string | null {
|
||||||
if (file.uri != null && file.userHost != null && this.config.externalMediaProxyEnabled) {
|
if (file.type.startsWith('video')) {
|
||||||
|
if (file.thumbnailUrl) return file.thumbnailUrl;
|
||||||
|
|
||||||
|
return this.videoProcessingService.getExternalVideoThumbnailUrl(file.webpublicUrl ?? file.url);
|
||||||
|
} else if (file.uri != null && file.userHost != null && this.config.externalMediaProxyEnabled) {
|
||||||
// 動画ではなくリモートかつメディアプロキシ
|
// 動画ではなくリモートかつメディアプロキシ
|
||||||
return this.getProxiedUrl(file.uri, 'static');
|
return this.getProxiedUrl(file.uri, 'static');
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,123 +10,66 @@ import type { Packed } from '@/misc/json-schema.js';
|
||||||
import type { } from '@/models/Blocking.js';
|
import type { } from '@/models/Blocking.js';
|
||||||
import type { MiEmoji } from '@/models/Emoji.js';
|
import type { MiEmoji } from '@/models/Emoji.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { In } from 'typeorm';
|
|
||||||
import type { Config } from '@/config.js';
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class EmojiEntityService {
|
export class EmojiEntityService {
|
||||||
constructor(
|
constructor(
|
||||||
@Inject(DI.emojisRepository)
|
@Inject(DI.emojisRepository)
|
||||||
private emojisRepository: EmojisRepository,
|
private emojisRepository: EmojisRepository,
|
||||||
|
|
||||||
@Inject(DI.config)
|
|
||||||
private config: Config,
|
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
private stripProxyIfOrigin(url: string): string {
|
|
||||||
try {
|
|
||||||
const u = new URL(url);
|
|
||||||
let origin = u.origin;
|
|
||||||
if (u.origin === new URL(this.config.mediaProxy).origin) {
|
|
||||||
const innerUrl = u.searchParams.get('url');
|
|
||||||
if (innerUrl) {
|
|
||||||
origin = new URL(innerUrl).origin;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (origin === u.origin) {
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
|
|
||||||
@bindThis
|
|
||||||
public packSimpleNoQuery(
|
|
||||||
emoji: MiEmoji,
|
|
||||||
): Packed<'EmojiSimple'> {
|
|
||||||
return {
|
|
||||||
aliases: emoji.aliases,
|
|
||||||
name: emoji.name,
|
|
||||||
category: emoji.category,
|
|
||||||
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
|
||||||
url: this.stripProxyIfOrigin(emoji.publicUrl || emoji.originalUrl),
|
|
||||||
localOnly: emoji.localOnly ? true : undefined,
|
|
||||||
isSensitive: emoji.isSensitive ? true : undefined,
|
|
||||||
roleIdsThatCanBeUsedThisEmojiAsReaction: emoji.roleIdsThatCanBeUsedThisEmojiAsReaction.length > 0 ? emoji.roleIdsThatCanBeUsedThisEmojiAsReaction : undefined,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async packSimple(
|
public async packSimple(
|
||||||
src: MiEmoji['id'] | MiEmoji,
|
src: MiEmoji['id'] | MiEmoji,
|
||||||
): Promise<Packed<'EmojiSimple'>> {
|
): Promise<Packed<'EmojiSimple'>> {
|
||||||
const emoji = typeof src === 'object' ? src : await this.emojisRepository.findOneByOrFail({ id: src });
|
const emoji = typeof src === 'object' ? src : await this.emojisRepository.findOneByOrFail({ id: src });
|
||||||
|
|
||||||
return this.packSimpleNoQuery(emoji);
|
|
||||||
}
|
|
||||||
|
|
||||||
@bindThis
|
|
||||||
public async packSimpleMany(
|
|
||||||
emojis: MiEmoji['id'][] | MiEmoji[],
|
|
||||||
): Promise<Packed<'EmojiSimple'>[]> {
|
|
||||||
if (emojis.length === 0) {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof emojis[0] === 'string') {
|
|
||||||
const res = await this.emojisRepository.findBy({ id: In(emojis as MiEmoji['id'][]) });
|
|
||||||
return res.map(this.packSimpleNoQuery);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (emojis as MiEmoji[]).map(this.packSimpleNoQuery);
|
|
||||||
}
|
|
||||||
|
|
||||||
@bindThis
|
|
||||||
public packDetailedNoQuery(
|
|
||||||
emoji: MiEmoji,
|
|
||||||
): Packed<'EmojiDetailed'> {
|
|
||||||
return {
|
return {
|
||||||
id: emoji.id,
|
|
||||||
aliases: emoji.aliases,
|
aliases: emoji.aliases,
|
||||||
name: emoji.name,
|
name: emoji.name,
|
||||||
category: emoji.category,
|
category: emoji.category,
|
||||||
host: emoji.host,
|
|
||||||
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
||||||
url: this.stripProxyIfOrigin(emoji.publicUrl || emoji.originalUrl),
|
url: emoji.publicUrl || emoji.originalUrl,
|
||||||
license: emoji.license,
|
localOnly: emoji.localOnly ? true : undefined,
|
||||||
isSensitive: emoji.isSensitive,
|
isSensitive: emoji.isSensitive ? true : undefined,
|
||||||
localOnly: emoji.localOnly,
|
roleIdsThatCanBeUsedThisEmojiAsReaction: emoji.roleIdsThatCanBeUsedThisEmojiAsReaction.length > 0 ? emoji.roleIdsThatCanBeUsedThisEmojiAsReaction : undefined,
|
||||||
roleIdsThatCanBeUsedThisEmojiAsReaction: emoji.roleIdsThatCanBeUsedThisEmojiAsReaction,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public packSimpleMany(
|
||||||
|
emojis: any[],
|
||||||
|
) {
|
||||||
|
return Promise.all(emojis.map(x => this.packSimple(x)));
|
||||||
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async packDetailed(
|
public async packDetailed(
|
||||||
src: MiEmoji['id'] | MiEmoji,
|
src: MiEmoji['id'] | MiEmoji,
|
||||||
): Promise<Packed<'EmojiDetailed'>> {
|
): Promise<Packed<'EmojiDetailed'>> {
|
||||||
const emoji = typeof src === 'object' ? src : await this.emojisRepository.findOneByOrFail({ id: src });
|
const emoji = typeof src === 'object' ? src : await this.emojisRepository.findOneByOrFail({ id: src });
|
||||||
|
|
||||||
return this.packDetailedNoQuery(emoji);
|
return {
|
||||||
|
id: emoji.id,
|
||||||
|
aliases: emoji.aliases,
|
||||||
|
name: emoji.name,
|
||||||
|
category: emoji.category,
|
||||||
|
host: emoji.host,
|
||||||
|
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
||||||
|
url: emoji.publicUrl || emoji.originalUrl,
|
||||||
|
license: emoji.license,
|
||||||
|
isSensitive: emoji.isSensitive,
|
||||||
|
localOnly: emoji.localOnly,
|
||||||
|
roleIdsThatCanBeUsedThisEmojiAsReaction: emoji.roleIdsThatCanBeUsedThisEmojiAsReaction,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async packDetailedMany(
|
public packDetailedMany(
|
||||||
emojis: MiEmoji['id'][] | MiEmoji[],
|
emojis: any[],
|
||||||
) : Promise<Packed<'EmojiDetailed'>[]> {
|
) {
|
||||||
if (emojis.length === 0) {
|
return Promise.all(emojis.map(x => this.packDetailed(x)));
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof emojis[0] === 'string') {
|
|
||||||
const res = await this.emojisRepository.findBy({ id: In(emojis as MiEmoji['id'][]) });
|
|
||||||
return res.map(this.packDetailedNoQuery);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (emojis as MiEmoji[]).map(this.packDetailedNoQuery);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,6 @@ import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typ
|
||||||
import { id } from './util/id.js';
|
import { id } from './util/id.js';
|
||||||
import { MiUser } from './User.js';
|
import { MiUser } from './User.js';
|
||||||
|
|
||||||
export type AbuseReportResolveType = 'accept' | 'reject';
|
|
||||||
|
|
||||||
@Entity('abuse_user_report')
|
@Entity('abuse_user_report')
|
||||||
export class MiAbuseUserReport {
|
export class MiAbuseUserReport {
|
||||||
@PrimaryColumn(id())
|
@PrimaryColumn(id())
|
||||||
|
@ -78,7 +76,7 @@ export class MiAbuseUserReport {
|
||||||
@Column('varchar', {
|
@Column('varchar', {
|
||||||
length: 128, nullable: true,
|
length: 128, nullable: true,
|
||||||
})
|
})
|
||||||
public resolvedAs: AbuseReportResolveType | null;
|
public resolvedAs: 'accept' | 'reject' | null;
|
||||||
|
|
||||||
//#region Denormalized fields
|
//#region Denormalized fields
|
||||||
@Index()
|
@Index()
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne, ViewEntity } from 'typeorm';
|
import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typeorm';
|
||||||
import { id } from './util/id.js';
|
import { id } from './util/id.js';
|
||||||
import { MiUser } from './User.js';
|
import { MiUser } from './User.js';
|
||||||
|
|
||||||
|
@ -98,4 +98,3 @@ export class MiFollowing {
|
||||||
public followeeSharedInbox: string | null;
|
public followeeSharedInbox: string | null;
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import { DataSource, MoreThan, QueryFailedError, TypeORMError } from 'typeorm';
|
import { MoreThan } from 'typeorm';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import { MiUser, type DriveFilesRepository, type NotesRepository, type UserProfilesRepository, type UsersRepository } from '@/models/_.js';
|
import type { DriveFilesRepository, NotesRepository, UserProfilesRepository, UsersRepository } from '@/models/_.js';
|
||||||
import type Logger from '@/logger.js';
|
import type Logger from '@/logger.js';
|
||||||
import { DriveService } from '@/core/DriveService.js';
|
import { DriveService } from '@/core/DriveService.js';
|
||||||
import type { MiDriveFile } from '@/models/DriveFile.js';
|
import type { MiDriveFile } from '@/models/DriveFile.js';
|
||||||
|
@ -26,9 +26,6 @@ export class DeleteAccountProcessorService {
|
||||||
@Inject(DI.usersRepository)
|
@Inject(DI.usersRepository)
|
||||||
private usersRepository: UsersRepository,
|
private usersRepository: UsersRepository,
|
||||||
|
|
||||||
@Inject(DI.db)
|
|
||||||
private db: DataSource,
|
|
||||||
|
|
||||||
@Inject(DI.userProfilesRepository)
|
@Inject(DI.userProfilesRepository)
|
||||||
private userProfilesRepository: UserProfilesRepository,
|
private userProfilesRepository: UserProfilesRepository,
|
||||||
|
|
||||||
|
@ -55,14 +52,6 @@ export class DeleteAccountProcessorService {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!user.isDeleted) {
|
|
||||||
this.logger.warn('User is not pre-marked as deleted, this is likely a bug');
|
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
|
||||||
throw new Error('User is not pre-marked as deleted'); // make some noise to make sure tests fail
|
|
||||||
}
|
|
||||||
await this.usersRepository.update({ id: user.id }, { isDeleted: true });
|
|
||||||
}
|
|
||||||
|
|
||||||
{ // Delete notes
|
{ // Delete notes
|
||||||
let cursor: MiNote['id'] | null = null;
|
let cursor: MiNote['id'] | null = null;
|
||||||
|
|
||||||
|
@ -132,46 +121,13 @@ export class DeleteAccountProcessorService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deadlockが発生した場合にリトライする
|
|
||||||
for (let remaining = 3; remaining > 0; remaining--) {
|
|
||||||
try {
|
|
||||||
// soft指定されている場合は物理削除しない
|
// soft指定されている場合は物理削除しない
|
||||||
await this.db.transaction(async txn => {
|
|
||||||
// soft指定してもデータをすべで削除する
|
|
||||||
await txn.delete(MiUser, user.id);
|
|
||||||
if (job.data.soft) {
|
if (job.data.soft) {
|
||||||
await txn.insert(MiUser, {
|
// nop
|
||||||
...user,
|
} else {
|
||||||
isRoot: false,
|
await this.usersRepository.delete(job.data.user.id);
|
||||||
updatedAt: new Date(),
|
|
||||||
emojis: [],
|
|
||||||
hideOnlineStatus: true,
|
|
||||||
followersCount: 0,
|
|
||||||
followingCount: 0,
|
|
||||||
avatarUrl: null,
|
|
||||||
avatarId: null,
|
|
||||||
notesCount: 0,
|
|
||||||
inbox: null,
|
|
||||||
sharedInbox: null,
|
|
||||||
featured: null,
|
|
||||||
uri: null,
|
|
||||||
followersUri: null,
|
|
||||||
token: null,
|
|
||||||
isDeleted: true,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
|
||||||
return 'Account deleted';
|
return 'Account deleted';
|
||||||
} catch (e) {
|
|
||||||
// 40P01 = deadlock_detected
|
|
||||||
// https://www.postgresql.org/docs/current/errcodes-appendix.html
|
|
||||||
if (remaining > 0 && e instanceof QueryFailedError && e.driverError.code === '40P01') {
|
|
||||||
this.logger.warn(`Deadlock occurred, retrying after 1s... [${remaining - 1} remaining]`);
|
|
||||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,19 +8,27 @@ import { fileURLToPath } from 'node:url';
|
||||||
import { dirname } from 'node:path';
|
import { dirname } from 'node:path';
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import rename from 'rename';
|
import rename from 'rename';
|
||||||
|
import sharp from 'sharp';
|
||||||
|
import { sharpBmp } from '@misskey-dev/sharp-read-bmp';
|
||||||
import type { Config } from '@/config.js';
|
import type { Config } from '@/config.js';
|
||||||
import type { MiDriveFile, DriveFilesRepository } from '@/models/_.js';
|
import type { MiDriveFile, DriveFilesRepository } from '@/models/_.js';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
|
import { createTemp } from '@/misc/create-temp.js';
|
||||||
import { FILE_TYPE_BROWSERSAFE } from '@/const.js';
|
import { FILE_TYPE_BROWSERSAFE } from '@/const.js';
|
||||||
import { StatusError } from '@/misc/status-error.js';
|
import { StatusError } from '@/misc/status-error.js';
|
||||||
import type Logger from '@/logger.js';
|
import type Logger from '@/logger.js';
|
||||||
|
import { DownloadService } from '@/core/DownloadService.js';
|
||||||
|
import { IImageStreamable, ImageProcessingService, webpDefault } from '@/core/ImageProcessingService.js';
|
||||||
|
import { VideoProcessingService } from '@/core/VideoProcessingService.js';
|
||||||
|
import { InternalStorageService } from '@/core/InternalStorageService.js';
|
||||||
import { contentDisposition } from '@/misc/content-disposition.js';
|
import { contentDisposition } from '@/misc/content-disposition.js';
|
||||||
import { FileInfoService } from '@/core/FileInfoService.js';
|
import { FileInfoService } from '@/core/FileInfoService.js';
|
||||||
import { LoggerService } from '@/core/LoggerService.js';
|
import { LoggerService } from '@/core/LoggerService.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
|
import { isMimeImage } from '@/misc/is-mime-image.js';
|
||||||
|
import { correctFilename } from '@/misc/correct-filename.js';
|
||||||
import { handleRequestRedirectToOmitSearch } from '@/misc/fastify-hook-handlers.js';
|
import { handleRequestRedirectToOmitSearch } from '@/misc/fastify-hook-handlers.js';
|
||||||
import type { FastifyInstance, FastifyRequest, FastifyReply, FastifyPluginOptions } from 'fastify';
|
import type { FastifyInstance, FastifyRequest, FastifyReply, FastifyPluginOptions } from 'fastify';
|
||||||
import { InternalStorageService } from '@/core/InternalStorageService.js';
|
|
||||||
|
|
||||||
const _filename = fileURLToPath(import.meta.url);
|
const _filename = fileURLToPath(import.meta.url);
|
||||||
const _dirname = dirname(_filename);
|
const _dirname = dirname(_filename);
|
||||||
|
@ -38,8 +46,11 @@ export class FileServerService {
|
||||||
@Inject(DI.driveFilesRepository)
|
@Inject(DI.driveFilesRepository)
|
||||||
private driveFilesRepository: DriveFilesRepository,
|
private driveFilesRepository: DriveFilesRepository,
|
||||||
|
|
||||||
private internalStorageService: InternalStorageService,
|
|
||||||
private fileInfoService: FileInfoService,
|
private fileInfoService: FileInfoService,
|
||||||
|
private downloadService: DownloadService,
|
||||||
|
private imageProcessingService: ImageProcessingService,
|
||||||
|
private videoProcessingService: VideoProcessingService,
|
||||||
|
private internalStorageService: InternalStorageService,
|
||||||
private loggerService: LoggerService,
|
private loggerService: LoggerService,
|
||||||
) {
|
) {
|
||||||
this.logger = this.loggerService.getLogger('server', 'gray');
|
this.logger = this.loggerService.getLogger('server', 'gray');
|
||||||
|
@ -123,13 +134,96 @@ export class FileServerService {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
if (file.state === 'remote') {
|
if (file.state === 'remote') {
|
||||||
const url = new URL(`${this.config.mediaProxy}/`);
|
let image: IImageStreamable | null = null;
|
||||||
|
|
||||||
|
if (file.fileRole === 'thumbnail') {
|
||||||
|
if (isMimeImage(file.mime, 'sharp-convertible-image-with-bmp')) {
|
||||||
|
reply.header('Cache-Control', 'max-age=31536000, immutable');
|
||||||
|
|
||||||
|
const url = new URL(`${this.config.mediaProxy}/static.webp`);
|
||||||
|
url.searchParams.set('url', file.url);
|
||||||
|
url.searchParams.set('static', '1');
|
||||||
|
|
||||||
|
file.cleanup();
|
||||||
|
return await reply.redirect(url.toString(), 301);
|
||||||
|
} else if (file.mime.startsWith('video/')) {
|
||||||
|
const externalThumbnail = this.videoProcessingService.getExternalVideoThumbnailUrl(file.url);
|
||||||
|
if (externalThumbnail) {
|
||||||
|
file.cleanup();
|
||||||
|
return await reply.redirect(externalThumbnail, 301);
|
||||||
|
}
|
||||||
|
|
||||||
|
image = await this.videoProcessingService.generateVideoThumbnail(file.path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (file.fileRole === 'webpublic') {
|
||||||
|
if (['image/svg+xml'].includes(file.mime)) {
|
||||||
|
reply.header('Cache-Control', 'max-age=31536000, immutable');
|
||||||
|
|
||||||
|
const url = new URL(`${this.config.mediaProxy}/svg.webp`);
|
||||||
url.searchParams.set('url', file.url);
|
url.searchParams.set('url', file.url);
|
||||||
|
|
||||||
|
file.cleanup();
|
||||||
return await reply.redirect(url.toString(), 301);
|
return await reply.redirect(url.toString(), 301);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!image) {
|
||||||
|
if (request.headers.range && file.file.size > 0) {
|
||||||
|
const range = request.headers.range as string;
|
||||||
|
const parts = range.replace(/bytes=/, '').split('-');
|
||||||
|
const start = parseInt(parts[0], 10);
|
||||||
|
let end = parts[1] ? parseInt(parts[1], 10) : file.file.size - 1;
|
||||||
|
if (end > file.file.size) {
|
||||||
|
end = file.file.size - 1;
|
||||||
|
}
|
||||||
|
const chunksize = end - start + 1;
|
||||||
|
|
||||||
|
image = {
|
||||||
|
data: fs.createReadStream(file.path, {
|
||||||
|
start,
|
||||||
|
end,
|
||||||
|
}),
|
||||||
|
ext: file.ext,
|
||||||
|
type: file.mime,
|
||||||
|
};
|
||||||
|
|
||||||
|
reply.header('Content-Range', `bytes ${start}-${end}/${file.file.size}`);
|
||||||
|
reply.header('Accept-Ranges', 'bytes');
|
||||||
|
reply.header('Content-Length', chunksize);
|
||||||
|
reply.code(206);
|
||||||
|
} else {
|
||||||
|
image = {
|
||||||
|
data: fs.createReadStream(file.path),
|
||||||
|
ext: file.ext,
|
||||||
|
type: file.mime,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ('pipe' in image.data && typeof image.data.pipe === 'function') {
|
||||||
|
// image.dataがstreamなら、stream終了後にcleanup
|
||||||
|
image.data.on('end', file.cleanup);
|
||||||
|
image.data.on('close', file.cleanup);
|
||||||
|
} else {
|
||||||
|
// image.dataがstreamでないなら直ちにcleanup
|
||||||
|
file.cleanup();
|
||||||
|
}
|
||||||
|
|
||||||
|
reply.header('Content-Type', FILE_TYPE_BROWSERSAFE.includes(image.type) ? image.type : 'application/octet-stream');
|
||||||
|
reply.header('Content-Length', file.file.size);
|
||||||
|
reply.header('Cache-Control', 'max-age=31536000, immutable');
|
||||||
|
reply.header('Content-Disposition',
|
||||||
|
contentDisposition(
|
||||||
|
'inline',
|
||||||
|
correctFilename(file.filename, image.ext),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
return image.data;
|
||||||
|
}
|
||||||
|
|
||||||
if (file.fileRole !== 'original') {
|
if (file.fileRole !== 'original') {
|
||||||
const filename = rename(file.filename, {
|
const filename = rename(file.filename, {
|
||||||
|
@ -190,11 +284,15 @@ export class FileServerService {
|
||||||
|
|
||||||
return fs.createReadStream(file.path);
|
return fs.createReadStream(file.path);
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
if ('cleanup' in file) file.cleanup();
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
private async proxyHandler(request: FastifyRequest<{ Params: { url: string; }; Querystring: { url?: string; }; }>, reply: FastifyReply) {
|
private async proxyHandler(request: FastifyRequest<{ Params: { url: string; }; Querystring: { url?: string; }; }>, reply: FastifyReply) {
|
||||||
const url = 'url' in request.query ? request.query.url : 'https://' + request.params.url;
|
let url = 'url' in request.query ? request.query.url : 'https://' + request.params.url;
|
||||||
|
|
||||||
if (typeof url !== 'string') {
|
if (typeof url !== 'string') {
|
||||||
reply.code(400);
|
reply.code(400);
|
||||||
|
@ -204,26 +302,27 @@ export class FileServerService {
|
||||||
// アバタークロップなど、どうしてもオリジンである必要がある場合
|
// アバタークロップなど、どうしてもオリジンである必要がある場合
|
||||||
const mustOrigin = 'origin' in request.query;
|
const mustOrigin = 'origin' in request.query;
|
||||||
|
|
||||||
if (!this.config.mediaProxy) {
|
if (this.config.externalMediaProxyEnabled) {
|
||||||
reply.code(501);
|
// 外部のメディアプロキシが有効なら、そちらにリダイレクト
|
||||||
}
|
|
||||||
|
|
||||||
const proxiedURL = new URL(`${this.config.mediaProxy}/?url=${encodeURIComponent(url)}`);
|
|
||||||
|
|
||||||
for (const [key, value] of Object.entries(request.query)) {
|
|
||||||
if (key.toLowerCase() === 'url') continue;
|
|
||||||
proxiedURL.searchParams.append(key, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!mustOrigin) {
|
|
||||||
return await reply.redirect(
|
|
||||||
proxiedURL.toString(),
|
|
||||||
301,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
reply.header('Cache-Control', 'public, max-age=259200'); // 3 days
|
reply.header('Cache-Control', 'public, max-age=259200'); // 3 days
|
||||||
|
|
||||||
|
const externalURL = new URL(`${this.config.mediaProxy}/${request.params.url || ''}`);
|
||||||
|
|
||||||
|
for (const [key, value] of Object.entries(request.query)) {
|
||||||
|
externalURL.searchParams.append(key, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mustOrigin) {
|
||||||
|
url = `${this.config.mediaProxy}?url=${encodeURIComponent(url)}`;
|
||||||
|
} else {
|
||||||
|
return await reply.redirect(
|
||||||
|
externalURL.toString(),
|
||||||
|
301,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!request.headers['user-agent']) {
|
if (!request.headers['user-agent']) {
|
||||||
throw new StatusError('User-Agent is required', 400, 'User-Agent is required');
|
throw new StatusError('User-Agent is required', 400, 'User-Agent is required');
|
||||||
} else if (request.headers['user-agent'].toLowerCase().indexOf('misskey/') !== -1) {
|
} else if (request.headers['user-agent'].toLowerCase().indexOf('misskey/') !== -1) {
|
||||||
|
@ -236,24 +335,201 @@ export class FileServerService {
|
||||||
throw new StatusError('Refusing to proxy a request from another proxy', 403, 'Proxy is recursive');
|
throw new StatusError('Refusing to proxy a request from another proxy', 403, 'Proxy is recursive');
|
||||||
}
|
}
|
||||||
|
|
||||||
// directly proxy request through
|
// Create temp file
|
||||||
const res = await fetch(proxiedURL, {
|
const file = await this.getStreamAndTypeFromUrl(url);
|
||||||
headers: {
|
if (file === '404') {
|
||||||
'X-Forwarded-For': request.headers['x-forwarded-for']?.at(0) ?? request.ip,
|
reply.code(404);
|
||||||
'User-Agent': request.headers['user-agent'],
|
reply.header('Cache-Control', 'max-age=86400');
|
||||||
},
|
return reply.sendFile('/dummy.png', assets);
|
||||||
});
|
}
|
||||||
|
|
||||||
reply.code(res.status);
|
if (file === '204') {
|
||||||
for (const [key, value] of res.headers.entries()) {
|
reply.code(204);
|
||||||
reply.header(key, value);
|
reply.header('Cache-Control', 'max-age=86400');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const isConvertibleImage = isMimeImage(file.mime, 'sharp-convertible-image-with-bmp');
|
||||||
|
const isAnimationConvertibleImage = isMimeImage(file.mime, 'sharp-animation-convertible-image-with-bmp');
|
||||||
|
|
||||||
|
if (
|
||||||
|
'emoji' in request.query ||
|
||||||
|
'avatar' in request.query ||
|
||||||
|
'static' in request.query ||
|
||||||
|
'preview' in request.query ||
|
||||||
|
'badge' in request.query
|
||||||
|
) {
|
||||||
|
if (!isConvertibleImage) {
|
||||||
|
// 画像でないなら404でお茶を濁す
|
||||||
|
throw new StatusError('Unexpected mime', 404);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let image: IImageStreamable | null = null;
|
||||||
|
if ('emoji' in request.query || 'avatar' in request.query) {
|
||||||
|
if (!isAnimationConvertibleImage && !('static' in request.query)) {
|
||||||
|
image = {
|
||||||
|
data: fs.createReadStream(file.path),
|
||||||
|
ext: file.ext,
|
||||||
|
type: file.mime,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
const data = (await sharpBmp(file.path, file.mime, { animated: !('static' in request.query) }))
|
||||||
|
.resize({
|
||||||
|
height: 'emoji' in request.query ? 128 : 320,
|
||||||
|
withoutEnlargement: true,
|
||||||
|
})
|
||||||
|
.webp(webpDefault);
|
||||||
|
|
||||||
|
image = {
|
||||||
|
data,
|
||||||
|
ext: 'webp',
|
||||||
|
type: 'image/webp',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
} else if ('static' in request.query) {
|
||||||
|
image = this.imageProcessingService.convertSharpToWebpStream(await sharpBmp(file.path, file.mime), 498, 422);
|
||||||
|
} else if ('preview' in request.query) {
|
||||||
|
image = this.imageProcessingService.convertSharpToWebpStream(await sharpBmp(file.path, file.mime), 200, 200);
|
||||||
|
} else if ('badge' in request.query) {
|
||||||
|
const mask = (await sharpBmp(file.path, file.mime))
|
||||||
|
.resize(96, 96, {
|
||||||
|
fit: 'contain',
|
||||||
|
position: 'centre',
|
||||||
|
withoutEnlargement: false,
|
||||||
|
})
|
||||||
|
.greyscale()
|
||||||
|
.normalise()
|
||||||
|
.linear(1.75, -(128 * 1.75) + 128) // 1.75x contrast
|
||||||
|
.flatten({ background: '#000' })
|
||||||
|
.toColorspace('b-w');
|
||||||
|
|
||||||
|
const stats = await mask.clone().stats();
|
||||||
|
|
||||||
|
if (stats.entropy < 0.1) {
|
||||||
|
// エントロピーがあまりない場合は404にする
|
||||||
|
throw new StatusError('Skip to provide badge', 404);
|
||||||
|
}
|
||||||
|
|
||||||
|
const data = sharp({
|
||||||
|
create: { width: 96, height: 96, channels: 4, background: { r: 0, g: 0, b: 0, alpha: 0 } },
|
||||||
|
})
|
||||||
|
.pipelineColorspace('b-w')
|
||||||
|
.boolean(await mask.png().toBuffer(), 'eor');
|
||||||
|
|
||||||
|
image = {
|
||||||
|
data: await data.png().toBuffer(),
|
||||||
|
ext: 'png',
|
||||||
|
type: 'image/png',
|
||||||
|
};
|
||||||
|
} else if (file.mime === 'image/svg+xml') {
|
||||||
|
image = this.imageProcessingService.convertToWebpStream(file.path, 2048, 2048);
|
||||||
|
} else if (!file.mime.startsWith('image/') || !FILE_TYPE_BROWSERSAFE.includes(file.mime)) {
|
||||||
|
throw new StatusError('Rejected type', 403, 'Rejected type');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!image) {
|
||||||
|
if (request.headers.range && file.file && file.file.size > 0) {
|
||||||
|
const range = request.headers.range as string;
|
||||||
|
const parts = range.replace(/bytes=/, '').split('-');
|
||||||
|
const start = parseInt(parts[0], 10);
|
||||||
|
let end = parts[1] ? parseInt(parts[1], 10) : file.file.size - 1;
|
||||||
|
if (end > file.file.size) {
|
||||||
|
end = file.file.size - 1;
|
||||||
|
}
|
||||||
|
const chunksize = end - start + 1;
|
||||||
|
|
||||||
|
image = {
|
||||||
|
data: fs.createReadStream(file.path, {
|
||||||
|
start,
|
||||||
|
end,
|
||||||
|
}),
|
||||||
|
ext: file.ext,
|
||||||
|
type: file.mime,
|
||||||
|
};
|
||||||
|
|
||||||
|
reply.header('Content-Range', `bytes ${start}-${end}/${file.file.size}`);
|
||||||
|
reply.header('Accept-Ranges', 'bytes');
|
||||||
|
reply.header('Content-Length', chunksize);
|
||||||
|
reply.code(206);
|
||||||
|
} else {
|
||||||
|
image = {
|
||||||
|
data: fs.createReadStream(file.path),
|
||||||
|
ext: file.ext,
|
||||||
|
type: file.mime,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ('cleanup' in file) {
|
||||||
|
if ('pipe' in image.data && typeof image.data.pipe === 'function') {
|
||||||
|
// image.dataがstreamなら、stream終了後にcleanup
|
||||||
|
image.data.on('end', file.cleanup);
|
||||||
|
image.data.on('close', file.cleanup);
|
||||||
|
} else {
|
||||||
|
// image.dataがstreamでないなら直ちにcleanup
|
||||||
|
file.cleanup();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
reply.header('Content-Type', image.type);
|
||||||
|
reply.header('Cache-Control', 'max-age=31536000, immutable');
|
||||||
|
reply.header('Content-Disposition',
|
||||||
|
contentDisposition(
|
||||||
|
'inline',
|
||||||
|
correctFilename(file.filename, image.ext),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
return image.data;
|
||||||
|
} catch (e) {
|
||||||
|
if ('cleanup' in file) file.cleanup();
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
private async getStreamAndTypeFromUrl(url: string): Promise<
|
||||||
|
{ state: 'remote'; fileRole?: 'thumbnail' | 'webpublic' | 'original'; file?: MiDriveFile; mime: string; ext: string | null; path: string; cleanup: () => void; filename: string; }
|
||||||
|
| { state: 'stored_internal'; fileRole: 'thumbnail' | 'webpublic' | 'original'; file: MiDriveFile; filename: string; mime: string; ext: string | null; path: string; }
|
||||||
|
| '404'
|
||||||
|
| '204'
|
||||||
|
> {
|
||||||
|
if (url.startsWith(`${this.config.url}/files/`)) {
|
||||||
|
const key = url.replace(`${this.config.url}/files/`, '').split('/').shift();
|
||||||
|
if (!key) throw new StatusError('Invalid File Key', 400, 'Invalid File Key');
|
||||||
|
|
||||||
|
return await this.getFileFromKey(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
return await this.downloadAndDetectTypeFromUrl(url);
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
private async downloadAndDetectTypeFromUrl(url: string): Promise<
|
||||||
|
{ state: 'remote' ; mime: string; ext: string | null; path: string; cleanup: () => void; filename: string; }
|
||||||
|
> {
|
||||||
|
const [path, cleanup] = await createTemp();
|
||||||
|
try {
|
||||||
|
const { filename } = await this.downloadService.downloadUrl(url, path);
|
||||||
|
|
||||||
|
const { mime, ext } = await this.fileInfoService.detectType(path);
|
||||||
|
|
||||||
|
return {
|
||||||
|
state: 'remote',
|
||||||
|
mime, ext,
|
||||||
|
path, cleanup,
|
||||||
|
filename,
|
||||||
|
};
|
||||||
|
} catch (e) {
|
||||||
|
cleanup();
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
reply.send(res.body);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
private async getFileFromKey(key: string): Promise<
|
private async getFileFromKey(key: string): Promise<
|
||||||
{ state: 'remote'; fileRole: 'thumbnail' | 'webpublic' | 'original'; filename: string; url: string; }
|
{ state: 'remote'; fileRole: 'thumbnail' | 'webpublic' | 'original'; file: MiDriveFile; filename: string; url: string; mime: string; ext: string | null; path: string; cleanup: () => void; }
|
||||||
| { state: 'stored_internal'; fileRole: 'thumbnail' | 'webpublic' | 'original'; file: MiDriveFile; filename: string; mime: string; ext: string | null; path: string; }
|
| { state: 'stored_internal'; fileRole: 'thumbnail' | 'webpublic' | 'original'; file: MiDriveFile; filename: string; mime: string; ext: string | null; path: string; }
|
||||||
| '404'
|
| '404'
|
||||||
| '204'
|
| '204'
|
||||||
|
@ -272,10 +548,15 @@ export class FileServerService {
|
||||||
|
|
||||||
if (!file.storedInternal) {
|
if (!file.storedInternal) {
|
||||||
if (!(file.isLink && file.uri)) return '204';
|
if (!(file.isLink && file.uri)) return '204';
|
||||||
return { state: 'remote',
|
const result = await this.downloadAndDetectTypeFromUrl(file.uri);
|
||||||
|
file.size = (await fs.promises.stat(result.path)).size; // DB file.sizeは正確とは限らないので
|
||||||
|
return {
|
||||||
|
...result,
|
||||||
|
url: file.uri,
|
||||||
fileRole: isThumbnail ? 'thumbnail' : isWebpublic ? 'webpublic' : 'original',
|
fileRole: isThumbnail ? 'thumbnail' : isWebpublic ? 'webpublic' : 'original',
|
||||||
filename: file.name
|
file,
|
||||||
, url: file.uri };
|
filename: file.name,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const path = this.internalStorageService.resolvePath(key);
|
const path = this.internalStorageService.resolvePath(key);
|
||||||
|
|
|
@ -33,6 +33,7 @@ import { OpenApiServerService } from './api/openapi/OpenApiServerService.js';
|
||||||
import { OAuth2ProviderService } from './oauth/OAuth2ProviderService.js';
|
import { OAuth2ProviderService } from './oauth/OAuth2ProviderService.js';
|
||||||
import { makeHstsHook } from './hsts.js';
|
import { makeHstsHook } from './hsts.js';
|
||||||
import { generateCSP } from './csp.js';
|
import { generateCSP } from './csp.js';
|
||||||
|
import * as prom from 'prom-client';
|
||||||
import { sanitizeRequestURI } from '@/misc/log-sanitization.js';
|
import { sanitizeRequestURI } from '@/misc/log-sanitization.js';
|
||||||
import { metricCounter, metricGauge, metricHistogram, MetricsService } from './api/MetricsService.js';
|
import { metricCounter, metricGauge, metricHistogram, MetricsService } from './api/MetricsService.js';
|
||||||
|
|
||||||
|
@ -109,11 +110,6 @@ const mLastSuccessfulRequest = metricGauge({
|
||||||
labelNames: [],
|
labelNames: [],
|
||||||
});
|
});
|
||||||
|
|
||||||
// This function is used to determine if a path is safe to redirect to.
|
|
||||||
function redirectSafePath(path: string): boolean {
|
|
||||||
return ['/files/', '/identicon/', '/proxy/', '/static-assets/', '/vite/', '/embed_vite/'].some(prefix => path.startsWith(prefix));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ServerService implements OnApplicationShutdown {
|
export class ServerService implements OnApplicationShutdown {
|
||||||
private logger: Logger;
|
private logger: Logger;
|
||||||
|
@ -352,7 +348,7 @@ export class ServerService implements OnApplicationShutdown {
|
||||||
name: name,
|
name: name,
|
||||||
});
|
});
|
||||||
|
|
||||||
reply.header('Content-Security-Policy', 'default-src \'none\'');
|
reply.header('Content-Security-Policy', 'default-src \'none\'; style-src \'unsafe-inline\'');
|
||||||
|
|
||||||
if (emoji == null) {
|
if (emoji == null) {
|
||||||
if ('fallback' in request.query) {
|
if ('fallback' in request.query) {
|
||||||
|
@ -363,26 +359,16 @@ export class ServerService implements OnApplicationShutdown {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const dbUrl = emoji?.publicUrl || emoji?.originalUrl;
|
|
||||||
const dbUrlParsed = new URL(dbUrl);
|
|
||||||
const instanceUrl = new URL(this.config.url);
|
|
||||||
if (dbUrlParsed.origin === instanceUrl.origin) {
|
|
||||||
if (!redirectSafePath(dbUrlParsed.pathname)) {
|
|
||||||
return await reply.status(508);
|
|
||||||
}
|
|
||||||
return await reply.redirect(dbUrl, 301);
|
|
||||||
}
|
|
||||||
|
|
||||||
let url: URL;
|
let url: URL;
|
||||||
if ('badge' in request.query) {
|
if ('badge' in request.query) {
|
||||||
url = new URL(`${this.config.mediaProxy}/emoji.png`);
|
url = new URL(`${this.config.mediaProxy}/emoji.png`);
|
||||||
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
||||||
url.searchParams.set('url', dbUrl);
|
url.searchParams.set('url', emoji.publicUrl || emoji.originalUrl);
|
||||||
url.searchParams.set('badge', '1');
|
url.searchParams.set('badge', '1');
|
||||||
} else {
|
} else {
|
||||||
url = new URL(`${this.config.mediaProxy}/emoji.webp`);
|
url = new URL(`${this.config.mediaProxy}/emoji.webp`);
|
||||||
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
// || emoji.originalUrl してるのは後方互換性のため(publicUrlはstringなので??はだめ)
|
||||||
url.searchParams.set('url', dbUrl);
|
url.searchParams.set('url', emoji.publicUrl || emoji.originalUrl);
|
||||||
url.searchParams.set('emoji', '1');
|
url.searchParams.set('emoji', '1');
|
||||||
if ('static' in request.query) url.searchParams.set('static', '1');
|
if ('static' in request.query) url.searchParams.set('static', '1');
|
||||||
}
|
}
|
||||||
|
@ -406,16 +392,6 @@ export class ServerService implements OnApplicationShutdown {
|
||||||
reply.header('Cache-Control', 'public, max-age=86400');
|
reply.header('Cache-Control', 'public, max-age=86400');
|
||||||
|
|
||||||
if (user) {
|
if (user) {
|
||||||
const dbUrl = user?.avatarUrl ?? this.userEntityService.getIdenticonUrl(user);
|
|
||||||
const dbUrlParsed = new URL(dbUrl);
|
|
||||||
const instanceUrl = new URL(this.config.url);
|
|
||||||
if (dbUrlParsed.origin === instanceUrl.origin) {
|
|
||||||
if (!redirectSafePath(dbUrlParsed.pathname)) {
|
|
||||||
return await reply.status(508);
|
|
||||||
}
|
|
||||||
return await reply.redirect(dbUrl, 301);
|
|
||||||
}
|
|
||||||
|
|
||||||
reply.redirect(user.avatarUrl ?? this.userEntityService.getIdenticonUrl(user));
|
reply.redirect(user.avatarUrl ?? this.userEntityService.getIdenticonUrl(user));
|
||||||
} else {
|
} else {
|
||||||
reply.redirect('/static-assets/user-unknown.png');
|
reply.redirect('/static-assets/user-unknown.png');
|
||||||
|
|
|
@ -134,8 +134,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
|
|
||||||
return await this.mergePack(
|
return await this.mergePack(
|
||||||
me,
|
me,
|
||||||
isActor(object) ? await this.apPersonService.createPerson(getApId(object), resolver) : null,
|
isActor(object) ? await this.apPersonService.createPerson(getApId(object)) : null,
|
||||||
isPost(object) ? await this.apNoteService.createNote(getApId(object), resolver, true) : null,
|
isPost(object) ? await this.apNoteService.createNote(getApId(object), undefined, true) : null,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
// Check if the circular reference will occur
|
// Check if the circular reference will occur
|
||||||
const checkCircle = async (folderId: string, limit: number = 32): Promise<boolean> => {
|
const checkCircle = async (folderId: string, limit: number = 32): Promise<boolean> => {
|
||||||
if (limit <= 0) {
|
if (limit <= 0) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
const folder2 = await this.driveFoldersRepository.findOneByOrFail({
|
const folder2 = await this.driveFoldersRepository.findOneByOrFail({
|
||||||
id: folderId,
|
id: folderId,
|
||||||
|
|
|
@ -50,15 +50,18 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
private emojiEntityService: EmojiEntityService,
|
private emojiEntityService: EmojiEntityService,
|
||||||
) {
|
) {
|
||||||
super(meta, paramDef, async (ps, me) => {
|
super(meta, paramDef, async (ps, me) => {
|
||||||
const emojis = await this.emojisRepository
|
const emojis = await this.emojisRepository.find({
|
||||||
.createQueryBuilder()
|
where: {
|
||||||
.where({ host: IsNull() })
|
host: IsNull(),
|
||||||
.orderBy('LOWER(category)', 'ASC')
|
},
|
||||||
.addOrderBy('LOWER(name)', 'ASC')
|
order: {
|
||||||
.getMany();
|
category: 'ASC',
|
||||||
|
name: 'ASC',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
emojis: emojis.map(this.emojiEntityService.packSimpleNoQuery),
|
emojis: await this.emojiEntityService.packSimpleMany(emojis),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,7 +106,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
id: In(ps.userIds),
|
id: In(ps.userIds),
|
||||||
} : {
|
} : {
|
||||||
id: In(ps.userIds),
|
id: In(ps.userIds),
|
||||||
isDeleted: false,
|
|
||||||
isSuspended: false,
|
isSuspended: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ export function generateCSP(hashedMap: Map<string, CSPHashed>, options: {
|
||||||
[
|
[
|
||||||
'\'self\'',
|
'\'self\'',
|
||||||
'data:',
|
'data:',
|
||||||
'blob:',
|
|
||||||
// 'https://avatars.githubusercontent.com', // uncomment this for contributor avatars to work
|
// 'https://avatars.githubusercontent.com', // uncomment this for contributor avatars to work
|
||||||
options.mediaProxy
|
options.mediaProxy
|
||||||
].filter(Boolean)],
|
].filter(Boolean)],
|
||||||
|
|
|
@ -19,7 +19,7 @@ import { GlobalModule } from '@/GlobalModule.js';
|
||||||
import { CoreModule } from '@/core/CoreModule.js';
|
import { CoreModule } from '@/core/CoreModule.js';
|
||||||
import { FederatedInstanceService } from '@/core/FederatedInstanceService.js';
|
import { FederatedInstanceService } from '@/core/FederatedInstanceService.js';
|
||||||
import { LoggerService } from '@/core/LoggerService.js';
|
import { LoggerService } from '@/core/LoggerService.js';
|
||||||
import { yumeNormalizeObject, type IActor, type IApDocument, type ICollection, type IObject, type IPost } from '@/core/activitypub/type.js';
|
import type { IActor, IApDocument, ICollection, IObject, IPost } from '@/core/activitypub/type.js';
|
||||||
import { MiMeta, MiNote, UserProfilesRepository } from '@/models/_.js';
|
import { MiMeta, MiNote, UserProfilesRepository } from '@/models/_.js';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import { secureRndstr } from '@/misc/secure-rndstr.js';
|
import { secureRndstr } from '@/misc/secure-rndstr.js';
|
||||||
|
@ -42,7 +42,6 @@ function createRandomActor({ actorHost = host } = {}): NonTransientIActor {
|
||||||
id: actorId,
|
id: actorId,
|
||||||
type: 'Person',
|
type: 'Person',
|
||||||
preferredUsername,
|
preferredUsername,
|
||||||
__yume_normalized_object: true,
|
|
||||||
inbox: `${actorId}/inbox`,
|
inbox: `${actorId}/inbox`,
|
||||||
outbox: `${actorId}/outbox`,
|
outbox: `${actorId}/outbox`,
|
||||||
};
|
};
|
||||||
|
@ -56,7 +55,6 @@ function createRandomNote(actor: NonTransientIActor): NonTransientIPost {
|
||||||
id: noteId,
|
id: noteId,
|
||||||
type: 'Note',
|
type: 'Note',
|
||||||
attributedTo: actor.id,
|
attributedTo: actor.id,
|
||||||
__yume_normalized_object: true,
|
|
||||||
content: 'test test foo',
|
content: 'test test foo',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -73,7 +71,6 @@ function createRandomFeaturedCollection(actor: NonTransientIActor, length: numbe
|
||||||
type: 'Collection',
|
type: 'Collection',
|
||||||
id: actor.outbox as string,
|
id: actor.outbox as string,
|
||||||
totalItems: items.length,
|
totalItems: items.length,
|
||||||
__yume_normalized_object: true,
|
|
||||||
items,
|
items,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -165,34 +162,6 @@ describe('ActivityPub', () => {
|
||||||
content: 'あ',
|
content: 'あ',
|
||||||
};
|
};
|
||||||
|
|
||||||
const punnyPost = {
|
|
||||||
'@context': 'https://www.w3.org/ns/activitystreams',
|
|
||||||
id: `https://あ.com/users/${secureRndstr(8)}`,
|
|
||||||
type: 'Note',
|
|
||||||
attributedTo: actor.id,
|
|
||||||
to: 'https://www.w3.org/ns/activitystreams#Public',
|
|
||||||
content: 'あ',
|
|
||||||
};
|
|
||||||
|
|
||||||
test('punnyPost normalization', async () => {
|
|
||||||
const normalized = yumeNormalizeObject(punnyPost);
|
|
||||||
assert.strictEqual(normalized.id, 'https://xn--l8j.com/users/あ');
|
|
||||||
});
|
|
||||||
|
|
||||||
const portedHost = {
|
|
||||||
'@context': 'https://www.w3.org/ns/activitystreams',
|
|
||||||
id: `https://あ.com:12443/users/${secureRndstr(8)}`,
|
|
||||||
type: 'Note',
|
|
||||||
to: 'https://www.w3.org/ns/activitystreams#Public',
|
|
||||||
content: 'あ',
|
|
||||||
}
|
|
||||||
|
|
||||||
test('actor with port should be rejected', async () => {
|
|
||||||
assert.throws(() => {
|
|
||||||
yumeNormalizeObject(portedHost);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
test('Minimum Actor', async () => {
|
test('Minimum Actor', async () => {
|
||||||
resolver.register(actor.id, actor);
|
resolver.register(actor.id, actor);
|
||||||
|
|
||||||
|
@ -251,7 +220,6 @@ describe('ActivityPub', () => {
|
||||||
type: 'OrderedCollection',
|
type: 'OrderedCollection',
|
||||||
totalItems: 0,
|
totalItems: 0,
|
||||||
first: `${actor.id}/following?page=1`,
|
first: `${actor.id}/following?page=1`,
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
};
|
||||||
actor.followers = `${actor.id}/followers`;
|
actor.followers = `${actor.id}/followers`;
|
||||||
|
|
||||||
|
@ -261,7 +229,6 @@ describe('ActivityPub', () => {
|
||||||
type: 'OrderedCollection',
|
type: 'OrderedCollection',
|
||||||
totalItems: 0,
|
totalItems: 0,
|
||||||
first: `${actor.followers}?page=1`,
|
first: `${actor.followers}?page=1`,
|
||||||
__yume_normalized_object: true,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const user = await personService.createPerson(actor.id, resolver);
|
const user = await personService.createPerson(actor.id, resolver);
|
||||||
|
@ -277,7 +244,6 @@ describe('ActivityPub', () => {
|
||||||
id: `${actor.id}/following`,
|
id: `${actor.id}/following`,
|
||||||
type: 'OrderedCollection',
|
type: 'OrderedCollection',
|
||||||
totalItems: 0,
|
totalItems: 0,
|
||||||
__yume_normalized_object: true,
|
|
||||||
// first: …
|
// first: …
|
||||||
};
|
};
|
||||||
actor.followers = `${actor.id}/followers`;
|
actor.followers = `${actor.id}/followers`;
|
||||||
|
@ -382,7 +348,6 @@ describe('ActivityPub', () => {
|
||||||
mediaType: 'image/png',
|
mediaType: 'image/png',
|
||||||
url: 'http://host1.test/foo.png',
|
url: 'http://host1.test/foo.png',
|
||||||
name: '',
|
name: '',
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
};
|
||||||
const driveFile = await imageService.createImage(
|
const driveFile = await imageService.createImage(
|
||||||
await createRandomRemoteUser(resolver, personService),
|
await createRandomRemoteUser(resolver, personService),
|
||||||
|
@ -396,7 +361,6 @@ describe('ActivityPub', () => {
|
||||||
url: 'http://host1.test/bar.png',
|
url: 'http://host1.test/bar.png',
|
||||||
name: '',
|
name: '',
|
||||||
sensitive: true,
|
sensitive: true,
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
};
|
||||||
const sensitiveDriveFile = await imageService.createImage(
|
const sensitiveDriveFile = await imageService.createImage(
|
||||||
await createRandomRemoteUser(resolver, personService),
|
await createRandomRemoteUser(resolver, personService),
|
||||||
|
@ -413,7 +377,6 @@ describe('ActivityPub', () => {
|
||||||
mediaType: 'image/png',
|
mediaType: 'image/png',
|
||||||
url: 'http://host1.test/foo.png',
|
url: 'http://host1.test/foo.png',
|
||||||
name: '',
|
name: '',
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
};
|
||||||
const driveFile = await imageService.createImage(
|
const driveFile = await imageService.createImage(
|
||||||
await createRandomRemoteUser(resolver, personService),
|
await createRandomRemoteUser(resolver, personService),
|
||||||
|
@ -427,7 +390,6 @@ describe('ActivityPub', () => {
|
||||||
url: 'http://host1.test/bar.png',
|
url: 'http://host1.test/bar.png',
|
||||||
name: '',
|
name: '',
|
||||||
sensitive: true,
|
sensitive: true,
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
};
|
||||||
const sensitiveDriveFile = await imageService.createImage(
|
const sensitiveDriveFile = await imageService.createImage(
|
||||||
await createRandomRemoteUser(resolver, personService),
|
await createRandomRemoteUser(resolver, personService),
|
||||||
|
@ -444,7 +406,6 @@ describe('ActivityPub', () => {
|
||||||
mediaType: 'image/png',
|
mediaType: 'image/png',
|
||||||
url: 'http://host1.test/foo.png',
|
url: 'http://host1.test/foo.png',
|
||||||
name: '',
|
name: '',
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
};
|
||||||
const driveFile = await imageService.createImage(
|
const driveFile = await imageService.createImage(
|
||||||
await createRandomRemoteUser(resolver, personService),
|
await createRandomRemoteUser(resolver, personService),
|
||||||
|
@ -458,7 +419,6 @@ describe('ActivityPub', () => {
|
||||||
url: 'http://host1.test/bar.png',
|
url: 'http://host1.test/bar.png',
|
||||||
name: '',
|
name: '',
|
||||||
sensitive: true,
|
sensitive: true,
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
};
|
||||||
const sensitiveDriveFile = await imageService.createImage(
|
const sensitiveDriveFile = await imageService.createImage(
|
||||||
await createRandomRemoteUser(resolver, personService),
|
await createRandomRemoteUser(resolver, personService),
|
||||||
|
@ -471,7 +431,6 @@ describe('ActivityPub', () => {
|
||||||
const linkObject: IObject = {
|
const linkObject: IObject = {
|
||||||
type: 'Link',
|
type: 'Link',
|
||||||
href: 'https://example.com/',
|
href: 'https://example.com/',
|
||||||
__yume_normalized_object: true,
|
|
||||||
};
|
};
|
||||||
const driveFile = await imageService.createImage(
|
const driveFile = await imageService.createImage(
|
||||||
await createRandomRemoteUser(resolver, personService),
|
await createRandomRemoteUser(resolver, personService),
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
"./node_modules"
|
"./node_modules"
|
||||||
],
|
],
|
||||||
"types": [
|
"types": [
|
||||||
"vite/client"
|
"vite/client",
|
||||||
],
|
],
|
||||||
"lib": [
|
"lib": [
|
||||||
"esnext",
|
"esnext",
|
||||||
|
@ -44,9 +44,8 @@
|
||||||
},
|
},
|
||||||
"compileOnSave": false,
|
"compileOnSave": false,
|
||||||
"include": [
|
"include": [
|
||||||
"./src/**/*.ts",
|
"./**/*.ts",
|
||||||
"./src/**/*.vue",
|
"./**/*.vue"
|
||||||
"./@types/**/*.ts"
|
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
".storybook/**/*"
|
".storybook/**/*"
|
||||||
|
|
|
@ -187,7 +187,6 @@ import MkUrlPreview from '@/components/MkUrlPreview.vue';
|
||||||
import MkInstanceTicker from '@/components/MkInstanceTicker.vue';
|
import MkInstanceTicker from '@/components/MkInstanceTicker.vue';
|
||||||
import { pleaseLogin, type OpenOnRemoteOptions } from '@/scripts/please-login.js';
|
import { pleaseLogin, type OpenOnRemoteOptions } from '@/scripts/please-login.js';
|
||||||
import { checkWordMute } from '@/scripts/check-word-mute.js';
|
import { checkWordMute } from '@/scripts/check-word-mute.js';
|
||||||
import { notePage } from '@/filters/note.js';
|
|
||||||
import { userPage } from '@/filters/user.js';
|
import { userPage } from '@/filters/user.js';
|
||||||
import number from '@/filters/number.js';
|
import number from '@/filters/number.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
|
@ -567,24 +566,15 @@ function showRenoteMenu(): void {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const renoteDetailsMenu: MenuItem = {
|
|
||||||
type: 'link',
|
|
||||||
text: i18n.ts.renoteDetails,
|
|
||||||
icon: 'ti ti-info-circle',
|
|
||||||
to: notePage(note.value),
|
|
||||||
};
|
|
||||||
|
|
||||||
if (isMyRenote) {
|
if (isMyRenote) {
|
||||||
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
||||||
os.popupMenu([
|
os.popupMenu([
|
||||||
renoteDetailsMenu,
|
|
||||||
getCopyNoteLinkMenu(note.value, i18n.ts.copyLinkRenote),
|
getCopyNoteLinkMenu(note.value, i18n.ts.copyLinkRenote),
|
||||||
{ type: 'divider' },
|
{ type: 'divider' },
|
||||||
getUnrenote(),
|
getUnrenote(),
|
||||||
], renoteTime.value);
|
], renoteTime.value);
|
||||||
} else {
|
} else {
|
||||||
os.popupMenu([
|
os.popupMenu([
|
||||||
renoteDetailsMenu,
|
|
||||||
getCopyNoteLinkMenu(note.value, i18n.ts.copyLinkRenote),
|
getCopyNoteLinkMenu(note.value, i18n.ts.copyLinkRenote),
|
||||||
{ type: 'divider' },
|
{ type: 'divider' },
|
||||||
getAbuseNoteMenu(note.value, i18n.ts.reportAbuseRenote),
|
getAbuseNoteMenu(note.value, i18n.ts.reportAbuseRenote),
|
||||||
|
|
|
@ -45,11 +45,8 @@
|
||||||
},
|
},
|
||||||
"compileOnSave": false,
|
"compileOnSave": false,
|
||||||
"include": [
|
"include": [
|
||||||
"./src/**/*.ts",
|
"./**/*.ts",
|
||||||
"./src/**/*.vue",
|
"./**/*.vue"
|
||||||
"./test/**/*.ts",
|
|
||||||
"./test/**/*.vue",
|
|
||||||
"./@types/**/*.ts"
|
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
".storybook/**/*"
|
".storybook/**/*"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"name": "misskey-js",
|
"name": "misskey-js",
|
||||||
"version": "2024.11.0-yumechinokuni.5",
|
"version": "2024.11.0-yumechinokuni.3",
|
||||||
"description": "Misskey SDK for JavaScript",
|
"description": "Misskey SDK for JavaScript",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./built/index.js",
|
"main": "./built/index.js",
|
||||||
|
|
527
yume-mods/nyuukyou/Cargo.lock
generated
527
yume-mods/nyuukyou/Cargo.lock
generated
|
@ -1,6 +1,6 @@
|
||||||
# This file is automatically @generated by Cargo.
|
# This file is automatically @generated by Cargo.
|
||||||
# It is not intended for manual editing.
|
# It is not intended for manual editing.
|
||||||
version = 4
|
version = 3
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "addr2line"
|
name = "addr2line"
|
||||||
|
@ -43,9 +43,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anstream"
|
name = "anstream"
|
||||||
version = "0.6.18"
|
version = "0.6.15"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b"
|
checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anstyle",
|
"anstyle",
|
||||||
"anstyle-parse",
|
"anstyle-parse",
|
||||||
|
@ -58,36 +58,36 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anstyle"
|
name = "anstyle"
|
||||||
version = "1.0.10"
|
version = "1.0.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
|
checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anstyle-parse"
|
name = "anstyle-parse"
|
||||||
version = "0.2.6"
|
version = "0.2.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
|
checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"utf8parse",
|
"utf8parse",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anstyle-query"
|
name = "anstyle-query"
|
||||||
version = "1.1.2"
|
version = "1.1.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
|
checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"windows-sys 0.59.0",
|
"windows-sys 0.52.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anstyle-wincon"
|
name = "anstyle-wincon"
|
||||||
version = "3.0.6"
|
version = "3.0.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125"
|
checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anstyle",
|
"anstyle",
|
||||||
"windows-sys 0.59.0",
|
"windows-sys 0.52.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -115,9 +115,9 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "axum"
|
name = "axum"
|
||||||
version = "0.7.9"
|
version = "0.7.7"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f"
|
checksum = "504e3947307ac8326a5437504c517c4b56716c9d98fac0028c2acc7ca47d70ae"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"axum-core",
|
"axum-core",
|
||||||
|
@ -220,23 +220,17 @@ version = "3.16.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
|
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "byteorder"
|
|
||||||
version = "1.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bytes"
|
name = "bytes"
|
||||||
version = "1.8.0"
|
version = "1.7.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da"
|
checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cc"
|
name = "cc"
|
||||||
version = "1.2.1"
|
version = "1.1.30"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47"
|
checksum = "b16803a61b81d9eabb7eae2588776c4c1e584b738ede45fdbb4c972cec1e9945"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"shlex",
|
"shlex",
|
||||||
]
|
]
|
||||||
|
@ -264,9 +258,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap"
|
name = "clap"
|
||||||
version = "4.5.21"
|
version = "4.5.20"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "fb3b4b9e5a7c7514dfa52869339ee98b3156b0bfb4e8a77c4ff4babb64b1604f"
|
checksum = "b97f376d85a664d5837dbae44bf546e6477a679ff6610010f17276f686d867e8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap_builder",
|
"clap_builder",
|
||||||
"clap_derive",
|
"clap_derive",
|
||||||
|
@ -274,9 +268,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap_builder"
|
name = "clap_builder"
|
||||||
version = "4.5.21"
|
version = "4.5.20"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b17a95aa67cc7b5ebd32aa5370189aa0d79069ef1c64ce893bd30fb24bff20ec"
|
checksum = "19bc80abd44e4bed93ca373a0704ccbd1b710dc5749406201bb018272808dc54"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anstream",
|
"anstream",
|
||||||
"anstyle",
|
"anstyle",
|
||||||
|
@ -298,15 +292,15 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap_lex"
|
name = "clap_lex"
|
||||||
version = "0.7.3"
|
version = "0.7.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7"
|
checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "colorchoice"
|
name = "colorchoice"
|
||||||
version = "1.0.3"
|
version = "1.0.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
|
checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "core-foundation"
|
name = "core-foundation"
|
||||||
|
@ -353,22 +347,11 @@ dependencies = [
|
||||||
"parking_lot_core",
|
"parking_lot_core",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "displaydoc"
|
|
||||||
version = "0.2.5"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "encoding_rs"
|
name = "encoding_rs"
|
||||||
version = "0.8.35"
|
version = "0.8.34"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
|
checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
]
|
]
|
||||||
|
@ -414,14 +397,14 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fastrand"
|
name = "fastrand"
|
||||||
version = "2.2.0"
|
version = "2.1.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "486f806e73c5707928240ddc295403b1b93c96a02038563881c4a2fd84b81ac4"
|
checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fedivet"
|
name = "fedivet"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://forge.yumechi.jp/yume/fedivet?tag=testing-audit%2Brelay%2Bfilter#b1b051dc2f1319a3948d7afcecfd3ac8f92a07de"
|
source = "git+https://forge.yumechi.jp/yume/fedivet?tag=testing-audit+relay#b0266202cfe72479774689db8879c3200190ea5f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"axum",
|
"axum",
|
||||||
|
@ -442,9 +425,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "flate2"
|
name = "flate2"
|
||||||
version = "1.0.35"
|
version = "1.0.34"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c"
|
checksum = "a1b589b4dc103969ad3cf85c950899926ec64300a1a46d76c03a6072957036f0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"crc32fast",
|
"crc32fast",
|
||||||
"miniz_oxide",
|
"miniz_oxide",
|
||||||
|
@ -613,9 +596,9 @@ checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hashbrown"
|
name = "hashbrown"
|
||||||
version = "0.15.1"
|
version = "0.15.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3"
|
checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "heck"
|
name = "heck"
|
||||||
|
@ -737,9 +720,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "hyper-util"
|
name = "hyper-util"
|
||||||
version = "0.1.10"
|
version = "0.1.9"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4"
|
checksum = "41296eb09f183ac68eec06e03cdbea2e759633d4067b2f6552fc2e009bcad08b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes",
|
"bytes",
|
||||||
"futures-channel",
|
"futures-channel",
|
||||||
|
@ -777,143 +760,14 @@ dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "icu_collections"
|
|
||||||
version = "1.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526"
|
|
||||||
dependencies = [
|
|
||||||
"displaydoc",
|
|
||||||
"yoke",
|
|
||||||
"zerofrom",
|
|
||||||
"zerovec",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "icu_locid"
|
|
||||||
version = "1.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637"
|
|
||||||
dependencies = [
|
|
||||||
"displaydoc",
|
|
||||||
"litemap",
|
|
||||||
"tinystr",
|
|
||||||
"writeable",
|
|
||||||
"zerovec",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "icu_locid_transform"
|
|
||||||
version = "1.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e"
|
|
||||||
dependencies = [
|
|
||||||
"displaydoc",
|
|
||||||
"icu_locid",
|
|
||||||
"icu_locid_transform_data",
|
|
||||||
"icu_provider",
|
|
||||||
"tinystr",
|
|
||||||
"zerovec",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "icu_locid_transform_data"
|
|
||||||
version = "1.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "icu_normalizer"
|
|
||||||
version = "1.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f"
|
|
||||||
dependencies = [
|
|
||||||
"displaydoc",
|
|
||||||
"icu_collections",
|
|
||||||
"icu_normalizer_data",
|
|
||||||
"icu_properties",
|
|
||||||
"icu_provider",
|
|
||||||
"smallvec",
|
|
||||||
"utf16_iter",
|
|
||||||
"utf8_iter",
|
|
||||||
"write16",
|
|
||||||
"zerovec",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "icu_normalizer_data"
|
|
||||||
version = "1.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "icu_properties"
|
|
||||||
version = "1.5.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5"
|
|
||||||
dependencies = [
|
|
||||||
"displaydoc",
|
|
||||||
"icu_collections",
|
|
||||||
"icu_locid_transform",
|
|
||||||
"icu_properties_data",
|
|
||||||
"icu_provider",
|
|
||||||
"tinystr",
|
|
||||||
"zerovec",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "icu_properties_data"
|
|
||||||
version = "1.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "icu_provider"
|
|
||||||
version = "1.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9"
|
|
||||||
dependencies = [
|
|
||||||
"displaydoc",
|
|
||||||
"icu_locid",
|
|
||||||
"icu_provider_macros",
|
|
||||||
"stable_deref_trait",
|
|
||||||
"tinystr",
|
|
||||||
"writeable",
|
|
||||||
"yoke",
|
|
||||||
"zerofrom",
|
|
||||||
"zerovec",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "icu_provider_macros"
|
|
||||||
version = "1.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "idna"
|
name = "idna"
|
||||||
version = "1.0.3"
|
version = "0.5.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e"
|
checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"idna_adapter",
|
"unicode-bidi",
|
||||||
"smallvec",
|
"unicode-normalization",
|
||||||
"utf8_iter",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "idna_adapter"
|
|
||||||
version = "1.2.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71"
|
|
||||||
dependencies = [
|
|
||||||
"icu_normalizer",
|
|
||||||
"icu_properties",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -923,7 +777,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da"
|
checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"equivalent",
|
"equivalent",
|
||||||
"hashbrown 0.15.1",
|
"hashbrown 0.15.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -955,9 +809,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libc"
|
name = "libc"
|
||||||
version = "0.2.164"
|
version = "0.2.160"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f"
|
checksum = "f0b21006cd1874ae9e650973c565615676dc4a274c965bb0a73796dac838ce4f"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "linux-raw-sys"
|
name = "linux-raw-sys"
|
||||||
|
@ -965,12 +819,6 @@ version = "0.4.14"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
|
checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "litemap"
|
|
||||||
version = "0.7.3"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "643cb0b8d4fcc284004d5fd0d67ccf61dfffadb7f75e1e71bc420f4688a3a704"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lock_api"
|
name = "lock_api"
|
||||||
version = "0.4.12"
|
version = "0.4.12"
|
||||||
|
@ -1060,7 +908,6 @@ dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"env_logger",
|
"env_logger",
|
||||||
"fedivet",
|
"fedivet",
|
||||||
"rand",
|
|
||||||
"serde",
|
"serde",
|
||||||
"tokio",
|
"tokio",
|
||||||
]
|
]
|
||||||
|
@ -1145,18 +992,18 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pin-project"
|
name = "pin-project"
|
||||||
version = "1.1.7"
|
version = "1.1.6"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "be57f64e946e500c8ee36ef6331845d40a93055567ec57e8fae13efd33759b95"
|
checksum = "baf123a161dde1e524adf36f90bc5d8d3462824a9c43553ad07a8183161189ec"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"pin-project-internal",
|
"pin-project-internal",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pin-project-internal"
|
name = "pin-project-internal"
|
||||||
version = "1.1.7"
|
version = "1.1.6"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3c0f5fad0874fc7abcd4d750e76917eaebbecaa2c20bde22e1dbeeba8beb758c"
|
checksum = "a4502d8515ca9f32f1fb543d987f63d95a14934883db45bdb48060b6b69257f8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
@ -1165,9 +1012,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pin-project-lite"
|
name = "pin-project-lite"
|
||||||
version = "0.2.15"
|
version = "0.2.14"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff"
|
checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pin-utils"
|
name = "pin-utils"
|
||||||
|
@ -1181,20 +1028,11 @@ version = "0.3.31"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2"
|
checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "ppv-lite86"
|
|
||||||
version = "0.2.20"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
|
|
||||||
dependencies = [
|
|
||||||
"zerocopy",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "proc-macro2"
|
name = "proc-macro2"
|
||||||
version = "1.0.89"
|
version = "1.0.88"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e"
|
checksum = "7c3a7fc5db1e57d5a779a352c8cdb57b29aa4c40cc69c3a68a7fedc815fbf2f9"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"unicode-ident",
|
"unicode-ident",
|
||||||
]
|
]
|
||||||
|
@ -1208,36 +1046,6 @@ dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "rand"
|
|
||||||
version = "0.8.5"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
|
|
||||||
dependencies = [
|
|
||||||
"libc",
|
|
||||||
"rand_chacha",
|
|
||||||
"rand_core",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "rand_chacha"
|
|
||||||
version = "0.3.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
|
||||||
dependencies = [
|
|
||||||
"ppv-lite86",
|
|
||||||
"rand_core",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "rand_core"
|
|
||||||
version = "0.6.4"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
|
||||||
dependencies = [
|
|
||||||
"getrandom",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "redox_syscall"
|
name = "redox_syscall"
|
||||||
version = "0.5.7"
|
version = "0.5.7"
|
||||||
|
@ -1249,9 +1057,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "regex"
|
name = "regex"
|
||||||
version = "1.11.1"
|
version = "1.11.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
|
checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aho-corasick",
|
"aho-corasick",
|
||||||
"memchr",
|
"memchr",
|
||||||
|
@ -1261,9 +1069,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "regex-automata"
|
name = "regex-automata"
|
||||||
version = "0.4.9"
|
version = "0.4.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
|
checksum = "368758f23274712b504848e9d5a6f010445cc8b87a7cdb4d7cbee666c1288da3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aho-corasick",
|
"aho-corasick",
|
||||||
"memchr",
|
"memchr",
|
||||||
|
@ -1278,9 +1086,9 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "reqwest"
|
name = "reqwest"
|
||||||
version = "0.12.9"
|
version = "0.12.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a77c62af46e79de0a562e1a9849205ffcb7fc1238876e9bd743357570e04046f"
|
checksum = "f713147fbe92361e52392c73b8c9e48c04c6625bce969ef54dc901e58e042a7b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
@ -1344,9 +1152,9 @@ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustix"
|
name = "rustix"
|
||||||
version = "0.38.41"
|
version = "0.38.37"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6"
|
checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"errno",
|
"errno",
|
||||||
|
@ -1357,9 +1165,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustls"
|
name = "rustls"
|
||||||
version = "0.23.17"
|
version = "0.23.15"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7f1a745511c54ba6d4465e8d5dfbd81b45791756de28d4981af70d6dca128f1e"
|
checksum = "5fbb44d7acc4e873d613422379f69f237a1b141928c02f6bc6ccfddddc2d7993"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"rustls-pki-types",
|
"rustls-pki-types",
|
||||||
|
@ -1436,9 +1244,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "security-framework-sys"
|
name = "security-framework-sys"
|
||||||
version = "2.12.1"
|
version = "2.12.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "fa39c7303dc58b5543c94d22c1766b0d31f2ee58306363ea622b10bbc075eaa2"
|
checksum = "ea4a292869320c0272d7bc55a5a6aafaff59b4f63404a003887b679a2e05b4b6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"core-foundation-sys",
|
"core-foundation-sys",
|
||||||
"libc",
|
"libc",
|
||||||
|
@ -1446,18 +1254,18 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde"
|
name = "serde"
|
||||||
version = "1.0.215"
|
version = "1.0.210"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f"
|
checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde_derive",
|
"serde_derive",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde_derive"
|
name = "serde_derive"
|
||||||
version = "1.0.215"
|
version = "1.0.210"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0"
|
checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
@ -1466,9 +1274,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde_json"
|
name = "serde_json"
|
||||||
version = "1.0.133"
|
version = "1.0.128"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377"
|
checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"itoa",
|
"itoa",
|
||||||
"memchr",
|
"memchr",
|
||||||
|
@ -1544,12 +1352,6 @@ version = "0.9.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
|
checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "stable_deref_trait"
|
|
||||||
version = "1.2.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "strsim"
|
name = "strsim"
|
||||||
version = "0.11.1"
|
version = "0.11.1"
|
||||||
|
@ -1564,9 +1366,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "syn"
|
name = "syn"
|
||||||
version = "2.0.87"
|
version = "2.0.79"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
|
checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
@ -1588,17 +1390,6 @@ dependencies = [
|
||||||
"futures-core",
|
"futures-core",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "synstructure"
|
|
||||||
version = "0.13.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "system-configuration"
|
name = "system-configuration"
|
||||||
version = "0.6.1"
|
version = "0.6.1"
|
||||||
|
@ -1622,9 +1413,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tempfile"
|
name = "tempfile"
|
||||||
version = "3.14.0"
|
version = "3.13.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c"
|
checksum = "f0f2c9fc62d0beef6951ccffd757e241266a2c833136efbe35af6cd2567dca5b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"fastrand",
|
"fastrand",
|
||||||
|
@ -1635,18 +1426,18 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "thiserror"
|
name = "thiserror"
|
||||||
version = "2.0.3"
|
version = "1.0.64"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa"
|
checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"thiserror-impl",
|
"thiserror-impl",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "thiserror-impl"
|
name = "thiserror-impl"
|
||||||
version = "2.0.3"
|
version = "1.0.64"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568"
|
checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
@ -1654,20 +1445,25 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tinystr"
|
name = "tinyvec"
|
||||||
version = "0.7.6"
|
version = "1.8.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f"
|
checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"displaydoc",
|
"tinyvec_macros",
|
||||||
"zerovec",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tokio"
|
name = "tinyvec_macros"
|
||||||
version = "1.41.1"
|
version = "0.1.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "22cfb5bee7a6a52939ca9224d6ac897bb669134078daa8735560897f69de4d33"
|
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "tokio"
|
||||||
|
version = "1.40.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"backtrace",
|
"backtrace",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
@ -1758,9 +1554,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tower-http"
|
name = "tower-http"
|
||||||
version = "0.6.2"
|
version = "0.6.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "403fa3b783d4b626a8ad51d766ab03cb6d2dbfc46b1c5d4448395e6628dc9697"
|
checksum = "8437150ab6bbc8c5f0f519e3d5ed4aa883a83dd4cdd3d1b21f9482936046cb97"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
@ -1812,12 +1608,27 @@ version = "0.2.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "unicode-bidi"
|
||||||
|
version = "0.3.17"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "5ab17db44d7388991a428b2ee655ce0c212e862eff1768a455c58f9aad6e7893"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "unicode-ident"
|
name = "unicode-ident"
|
||||||
version = "1.0.13"
|
version = "1.0.13"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
|
checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "unicode-normalization"
|
||||||
|
version = "0.1.24"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956"
|
||||||
|
dependencies = [
|
||||||
|
"tinyvec",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "untrusted"
|
name = "untrusted"
|
||||||
version = "0.9.0"
|
version = "0.9.0"
|
||||||
|
@ -1826,9 +1637,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "url"
|
name = "url"
|
||||||
version = "2.5.3"
|
version = "2.5.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8d157f1b96d14500ffdc1f10ba712e780825526c03d9a49b4d0324b0d9113ada"
|
checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"form_urlencoded",
|
"form_urlencoded",
|
||||||
"idna",
|
"idna",
|
||||||
|
@ -1836,18 +1647,6 @@ dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "utf16_iter"
|
|
||||||
version = "1.0.5"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "utf8_iter"
|
|
||||||
version = "1.0.4"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "utf8parse"
|
name = "utf8parse"
|
||||||
version = "0.2.2"
|
version = "0.2.2"
|
||||||
|
@ -1944,9 +1743,9 @@ checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "wasm-streams"
|
name = "wasm-streams"
|
||||||
version = "0.4.2"
|
version = "0.4.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65"
|
checksum = "4e072d4e72f700fb3443d8fe94a39315df013eef1104903cdb0a2abd322bbecd"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-util",
|
"futures-util",
|
||||||
"js-sys",
|
"js-sys",
|
||||||
|
@ -2086,108 +1885,8 @@ version = "0.52.6"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "write16"
|
|
||||||
version = "1.0.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "writeable"
|
|
||||||
version = "0.5.5"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "yoke"
|
|
||||||
version = "0.7.4"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "6c5b1314b079b0930c31e3af543d8ee1757b1951ae1e1565ec704403a7240ca5"
|
|
||||||
dependencies = [
|
|
||||||
"serde",
|
|
||||||
"stable_deref_trait",
|
|
||||||
"yoke-derive",
|
|
||||||
"zerofrom",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "yoke-derive"
|
|
||||||
version = "0.7.4"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
"synstructure",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "zerocopy"
|
|
||||||
version = "0.7.35"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
|
|
||||||
dependencies = [
|
|
||||||
"byteorder",
|
|
||||||
"zerocopy-derive",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "zerocopy-derive"
|
|
||||||
version = "0.7.35"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "zerofrom"
|
|
||||||
version = "0.1.4"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "91ec111ce797d0e0784a1116d0ddcdbea84322cd79e5d5ad173daeba4f93ab55"
|
|
||||||
dependencies = [
|
|
||||||
"zerofrom-derive",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "zerofrom-derive"
|
|
||||||
version = "0.1.4"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
"synstructure",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zeroize"
|
name = "zeroize"
|
||||||
version = "1.8.1"
|
version = "1.8.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
|
checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "zerovec"
|
|
||||||
version = "0.10.4"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079"
|
|
||||||
dependencies = [
|
|
||||||
"yoke",
|
|
||||||
"zerofrom",
|
|
||||||
"zerovec-derive",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "zerovec-derive"
|
|
||||||
version = "0.10.3"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
]
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ edition = "2021"
|
||||||
axum = "0.7"
|
axum = "0.7"
|
||||||
clap = { version = "4.5.20", features = ["derive"] }
|
clap = { version = "4.5.20", features = ["derive"] }
|
||||||
env_logger = "0.11.5"
|
env_logger = "0.11.5"
|
||||||
fedivet = { git = "https://forge.yumechi.jp/yume/fedivet", tag = "testing-audit+relay+filter" }
|
fedivet = { git = "https://forge.yumechi.jp/yume/fedivet", tag = "testing-audit+relay" }
|
||||||
rand = "0.8.5"
|
|
||||||
serde = { version = "1.0.210", features = ["derive"] }
|
serde = { version = "1.0.210", features = ["derive"] }
|
||||||
tokio = { version = "1" }
|
tokio = { version = "1" }
|
||||||
|
|
|
@ -1,22 +1,16 @@
|
||||||
use std::collections::HashMap;
|
|
||||||
use std::hash::DefaultHasher;
|
|
||||||
use std::hash::Hash;
|
|
||||||
use std::hash::Hasher;
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::sync::RwLock;
|
|
||||||
use std::time::Instant;
|
|
||||||
|
|
||||||
use axum::http::StatusCode;
|
use axum::response::IntoResponse;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use fedivet::evaluate::chain::audit::AuditOptions;
|
use fedivet::evaluate::chain::audit::AuditOptions;
|
||||||
use fedivet::evaluate::Disposition;
|
|
||||||
use fedivet::evaluate::Evaluator;
|
use fedivet::evaluate::Evaluator;
|
||||||
use fedivet::model::error::MisskeyError;
|
use fedivet::model::error::MisskeyError;
|
||||||
use fedivet::serve;
|
use fedivet::serve;
|
||||||
use fedivet::BaseAppState;
|
use fedivet::BaseAppState;
|
||||||
use fedivet::HasAppState;
|
use fedivet::HasAppState;
|
||||||
use rand::random;
|
use serde::Serialize;
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
pub struct Args {
|
pub struct Args {
|
||||||
|
@ -30,84 +24,14 @@ pub struct Args {
|
||||||
pub tls_key: Option<String>,
|
pub tls_key: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
struct LastSeenEntry {
|
|
||||||
ts: Instant,
|
|
||||||
count: u64,
|
|
||||||
}
|
|
||||||
|
|
||||||
const ERR_DEDUP: MisskeyError = MisskeyError::new_const(
|
|
||||||
StatusCode::OK,
|
|
||||||
"TOO_MANY_DUPLICATES",
|
|
||||||
"02fe81b0-c1ef-4d4e-bd5c-288ae379bff7",
|
|
||||||
"Too many duplicates, further duplicates will be ignored.",
|
|
||||||
);
|
|
||||||
|
|
||||||
#[allow(clippy::unused_async)]
|
#[allow(clippy::unused_async)]
|
||||||
async fn build_state(
|
async fn build_state<E: IntoResponse + Clone + Serialize + Send + Sync + 'static>(
|
||||||
base: Arc<BaseAppState<MisskeyError>>,
|
base: Arc<BaseAppState<E>>,
|
||||||
_args: &Args,
|
_args: &Args,
|
||||||
) -> impl HasAppState<MisskeyError> + Evaluator<MisskeyError> {
|
) -> impl HasAppState<E> + Evaluator<E> {
|
||||||
let dedup_last_seen = Arc::new(RwLock::new(HashMap::<_, LastSeenEntry>::new()));
|
base
|
||||||
|
.extract_meta()
|
||||||
let dedup_last_seen_clone = dedup_last_seen.clone();
|
.audited(AuditOptions::new(PathBuf::from("/store/log/audit/incoming")))
|
||||||
let dedup_last_seen_clone2 = dedup_last_seen.clone();
|
|
||||||
|
|
||||||
tokio::spawn(async move {
|
|
||||||
let mut ticker = tokio::time::interval(tokio::time::Duration::from_secs(60 * 60));
|
|
||||||
loop {
|
|
||||||
ticker.tick().await;
|
|
||||||
let mut dedup_last_seen = dedup_last_seen_clone.write().unwrap();
|
|
||||||
dedup_last_seen.retain(|_, entry| entry.ts.elapsed().as_secs() < 60 * 5);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
base.extract_meta()
|
|
||||||
.filter(
|
|
||||||
move |event| match event.activity.as_ref() {
|
|
||||||
Err(_) => Disposition::Next,
|
|
||||||
Ok(activity) => {
|
|
||||||
let dedup_last_seen = dedup_last_seen.read().unwrap();
|
|
||||||
|
|
||||||
let mut hash = DefaultHasher::new();
|
|
||||||
activity.meta_obj.ty_.hash(&mut hash);
|
|
||||||
activity.meta_obj.id.hash(&mut hash);
|
|
||||||
|
|
||||||
let count = dedup_last_seen
|
|
||||||
.get(&hash.finish())
|
|
||||||
.map(|entry| entry.count)
|
|
||||||
.unwrap_or(0);
|
|
||||||
if count > 5 {
|
|
||||||
Disposition::Intercept(ERR_DEDUP)
|
|
||||||
} else {
|
|
||||||
Disposition::Next
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
move |_resp, info| match info.activity.as_ref() {
|
|
||||||
Err(_) => {}
|
|
||||||
Ok(activity) => {
|
|
||||||
let mut hash = DefaultHasher::new();
|
|
||||||
activity.meta_obj.ty_.hash(&mut hash);
|
|
||||||
activity.meta_obj.id.hash(&mut hash);
|
|
||||||
|
|
||||||
let mut dedup_last_seen = dedup_last_seen_clone2.write().unwrap();
|
|
||||||
dedup_last_seen
|
|
||||||
.entry(hash.finish())
|
|
||||||
.or_insert(LastSeenEntry {
|
|
||||||
ts: Instant::now(),
|
|
||||||
count: 1,
|
|
||||||
});
|
|
||||||
if dedup_last_seen.len() * std::mem::size_of::<(u64, LastSeenEntry)>()
|
|
||||||
> 64 << 20
|
|
||||||
{
|
|
||||||
dedup_last_seen.retain(|_, _| random::<bool>());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
)
|
|
||||||
.audited(AuditOptions::new(PathBuf::from(
|
|
||||||
"/store/log/audit/incoming",
|
|
||||||
)))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
|
@ -119,7 +43,7 @@ async fn main() {
|
||||||
|
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
|
|
||||||
let state = build_state(
|
let state = build_state::<MisskeyError>(
|
||||||
Arc::new(
|
Arc::new(
|
||||||
BaseAppState::new(args.backend.parse().expect("Invalid backend URL")).with_empty_ctx(),
|
BaseAppState::new(args.backend.parse().expect("Invalid backend URL")).with_empty_ctx(),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue