Merge tag '2023.11.1' into merge-upstream
This commit is contained in:
commit
455c7eb653
|
@ -9,3 +9,9 @@ body:
|
||||||
description: Tell us what the suggestion is
|
description: Tell us what the suggestion is
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Purpose
|
||||||
|
description: Describe the specific problem or need you think this feature will solve, and who it will help.
|
||||||
|
validations:
|
||||||
|
required: true
|
2
.github/workflows/report-api-diff.yml
vendored
2
.github/workflows/report-api-diff.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
||||||
# api-artifact
|
# api-artifact
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
|
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
|
||||||
|
|
33
CHANGELOG.md
33
CHANGELOG.md
|
@ -12,6 +12,39 @@
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## 2023.11.1
|
||||||
|
|
||||||
|
### General
|
||||||
|
- Feat: 管理者がコントロールパネルからメールアドレスの照会を行えるようになりました
|
||||||
|
- Enhance: ローカリゼーションの更新
|
||||||
|
- Enhance: 依存関係の更新
|
||||||
|
|
||||||
|
### Client
|
||||||
|
- Enhance: MFMでルビを振れるように
|
||||||
|
- 例: `$[ruby 三須木 みすき]`
|
||||||
|
- Enhance: MFMでUNIX時間を指定して日時を表示できるように
|
||||||
|
- 例: `$[unixtime 1701356400]`
|
||||||
|
- Enhance: プラグインでエラーが発生した場合のハンドリングを強化
|
||||||
|
- Enhance: 細かなUIのブラッシュアップ
|
||||||
|
- Fix: 効果音が再生されるとデバイスで再生している動画や音声が停止する問題を修正 #12339
|
||||||
|
- Fix: デッキに表示されたチャンネルの表示先チャンネルを切り替えた際、即座に反映されない問題を修正 #12236
|
||||||
|
- Fix: プラグインでノートの表示を書き換えられない問題を修正
|
||||||
|
- Fix: アイコンデコレーションが見切れる場合がある問題を修正
|
||||||
|
- Fix: 「フォロー中の人全員の返信を含める/含めないようにする」のボタンを押下した際の確認が機能していない問題を修正
|
||||||
|
- Fix: 非ログイン時に「メモを追加」を表示しないように変更 #12309
|
||||||
|
- Fix: 絵文字ピッカーでの検索が更新されない問題を修正
|
||||||
|
- Fix: 特定の条件下でノートがnyaizeされない問題を修正
|
||||||
|
|
||||||
|
### Server
|
||||||
|
- Enhance: FTTのデータベースへのフォールバック処理を行うかどうかを設定可能に
|
||||||
|
- Fix: トークンのないプラグインをアンインストールするときにエラーが出ないように
|
||||||
|
- Fix: 投稿通知がオンでもダイレクト投稿はユーザーに通知されないようにされました
|
||||||
|
- Fix: ユーザタイムラインの「ノート」選択時にリノートが混ざり込んでしまうことがある問題の修正 #12306
|
||||||
|
- Fix: LTLに特定条件下にてチャンネルへの投稿が混ざり込む現象を修正
|
||||||
|
- Fix: ActivityPub: 追加情報のカスタム絵文字がユーザー情報のtagに含まれない問題を修正
|
||||||
|
- Fix: ActivityPubに関するセキュリティの向上
|
||||||
|
- Fix: 非公開の投稿に対して返信できないように
|
||||||
|
|
||||||
## 2023.11.0
|
## 2023.11.0
|
||||||
|
|
||||||
### Note
|
### Note
|
||||||
|
|
|
@ -2,45 +2,131 @@
|
||||||
|
|
||||||
## Our Pledge
|
## Our Pledge
|
||||||
|
|
||||||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
We as members, contributors, and leaders pledge to make participation in our
|
||||||
|
community a harassment-free experience for everyone, regardless of age, body
|
||||||
|
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||||
|
identity and expression, level of experience, education, socio-economic status,
|
||||||
|
nationality, personal appearance, race, caste, color, religion, or sexual
|
||||||
|
identity and orientation.
|
||||||
|
|
||||||
|
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||||
|
diverse, inclusive, and healthy community.
|
||||||
|
|
||||||
## Our Standards
|
## Our Standards
|
||||||
|
|
||||||
Examples of behavior that contributes to creating a positive environment include:
|
Examples of behavior that contributes to a positive environment for our
|
||||||
|
community include:
|
||||||
|
|
||||||
* Using welcoming and inclusive language
|
* Demonstrating empathy and kindness toward other people
|
||||||
* Being respectful of differing viewpoints and experiences
|
* Being respectful of differing opinions, viewpoints, and experiences
|
||||||
* Gracefully accepting constructive criticism
|
* Giving and gracefully accepting constructive feedback
|
||||||
* Focusing on what is best for the community
|
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||||
* Showing empathy towards other community members
|
and learning from the experience
|
||||||
|
* Focusing on what is best not just for us as individuals, but for the overall
|
||||||
|
community
|
||||||
|
|
||||||
Examples of unacceptable behavior by participants include:
|
Examples of unacceptable behavior include:
|
||||||
|
|
||||||
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
* The use of sexualized language or imagery, and sexual attention or advances of
|
||||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
any kind
|
||||||
|
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||||
* Public or private harassment
|
* Public or private harassment
|
||||||
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
* Publishing others' private information, such as a physical or email address,
|
||||||
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
without their explicit permission
|
||||||
|
* Other conduct which could reasonably be considered inappropriate in a
|
||||||
|
professional setting
|
||||||
|
|
||||||
## Our Responsibilities
|
## Enforcement Responsibilities
|
||||||
|
|
||||||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
|
Community leaders are responsible for clarifying and enforcing our standards of
|
||||||
|
acceptable behavior and will take appropriate and fair corrective action in
|
||||||
|
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||||
|
or harmful.
|
||||||
|
|
||||||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
Community leaders have the right and responsibility to remove, edit, or reject
|
||||||
|
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||||
|
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||||
|
decisions when appropriate.
|
||||||
|
|
||||||
## Scope
|
## Scope
|
||||||
|
|
||||||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
|
This Code of Conduct applies within all community spaces, and also applies when
|
||||||
|
an individual is officially representing the community in public spaces.
|
||||||
|
Examples of representing our community include using an official e-mail address,
|
||||||
|
posting via an official social media account, or acting as an appointed
|
||||||
|
representative at an online or offline event.
|
||||||
|
|
||||||
## Enforcement
|
## Enforcement
|
||||||
|
|
||||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at syuilotan@yahoo.co.jp. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
|
reported to the community leaders responsible for enforcement at
|
||||||
|
<syuilotan@yahoo.co.jp>.
|
||||||
|
All complaints will be reviewed and investigated promptly and fairly.
|
||||||
|
|
||||||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
|
All community leaders are obligated to respect the privacy and security of the
|
||||||
|
reporter of any incident.
|
||||||
|
|
||||||
|
## Enforcement Guidelines
|
||||||
|
|
||||||
|
Community leaders will follow these Community Impact Guidelines in determining
|
||||||
|
the consequences for any action they deem in violation of this Code of Conduct:
|
||||||
|
|
||||||
|
### 1. Correction
|
||||||
|
|
||||||
|
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||||
|
unprofessional or unwelcome in the community.
|
||||||
|
|
||||||
|
**Consequence**: A private, written warning from community leaders, providing
|
||||||
|
clarity around the nature of the violation and an explanation of why the
|
||||||
|
behavior was inappropriate. A public apology may be requested.
|
||||||
|
|
||||||
|
### 2. Warning
|
||||||
|
|
||||||
|
**Community Impact**: A violation through a single incident or series of
|
||||||
|
actions.
|
||||||
|
|
||||||
|
**Consequence**: A warning with consequences for continued behavior. No
|
||||||
|
interaction with the people involved, including unsolicited interaction with
|
||||||
|
those enforcing the Code of Conduct, for a specified period of time. This
|
||||||
|
includes avoiding interactions in community spaces as well as external channels
|
||||||
|
like social media. Violating these terms may lead to a temporary or permanent
|
||||||
|
ban.
|
||||||
|
|
||||||
|
### 3. Temporary Ban
|
||||||
|
|
||||||
|
**Community Impact**: A serious violation of community standards, including
|
||||||
|
sustained inappropriate behavior.
|
||||||
|
|
||||||
|
**Consequence**: A temporary ban from any sort of interaction or public
|
||||||
|
communication with the community for a specified period of time. No public or
|
||||||
|
private interaction with the people involved, including unsolicited interaction
|
||||||
|
with those enforcing the Code of Conduct, is allowed during this period.
|
||||||
|
Violating these terms may lead to a permanent ban.
|
||||||
|
|
||||||
|
### 4. Permanent Ban
|
||||||
|
|
||||||
|
**Community Impact**: Demonstrating a pattern of violation of community
|
||||||
|
standards, including sustained inappropriate behavior, harassment of an
|
||||||
|
individual, or aggression toward or disparagement of classes of individuals.
|
||||||
|
|
||||||
|
**Consequence**: A permanent ban from any sort of public interaction within the
|
||||||
|
community.
|
||||||
|
|
||||||
## Attribution
|
## Attribution
|
||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||||
|
version 2.1, available at
|
||||||
|
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
||||||
|
|
||||||
[homepage]: http://contributor-covenant.org
|
Community Impact Guidelines were inspired by
|
||||||
[version]: http://contributor-covenant.org/version/1/4/
|
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
||||||
|
|
||||||
|
For answers to common questions about this code of conduct, see the FAQ at
|
||||||
|
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
||||||
|
[https://www.contributor-covenant.org/translations][translations].
|
||||||
|
|
||||||
|
[homepage]: https://www.contributor-covenant.org
|
||||||
|
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
||||||
|
[Mozilla CoC]: https://github.com/mozilla/diversity
|
||||||
|
[FAQ]: https://www.contributor-covenant.org/faq
|
||||||
|
[translations]: https://www.contributor-covenant.org/translations
|
||||||
|
|
|
@ -45,6 +45,7 @@ pin: "Fixar al perfil"
|
||||||
unpin: "Para de fixar del perfil"
|
unpin: "Para de fixar del perfil"
|
||||||
copyContent: "Copiar el contingut"
|
copyContent: "Copiar el contingut"
|
||||||
copyLink: "Copiar l'enllaç"
|
copyLink: "Copiar l'enllaç"
|
||||||
|
copyLinkRenote: "Copiar l'enllaç de la renota"
|
||||||
delete: "Elimina"
|
delete: "Elimina"
|
||||||
deleteAndEdit: "Elimina i edita"
|
deleteAndEdit: "Elimina i edita"
|
||||||
deleteAndEditConfirm: "Segur que vols eliminar aquesta publicació i editar-la? Perdràs totes les reaccions, impulsos i respostes."
|
deleteAndEditConfirm: "Segur que vols eliminar aquesta publicació i editar-la? Perdràs totes les reaccions, impulsos i respostes."
|
||||||
|
@ -110,6 +111,8 @@ renoted: "S'ha impulsat"
|
||||||
cantRenote: "No es pot impulsar aquesta publicació"
|
cantRenote: "No es pot impulsar aquesta publicació"
|
||||||
cantReRenote: "No es pot impulsar l'impuls."
|
cantReRenote: "No es pot impulsar l'impuls."
|
||||||
quote: "Cita"
|
quote: "Cita"
|
||||||
|
inChannelRenote: "Renotar només al Canal"
|
||||||
|
inChannelQuote: "Citar només al Canal"
|
||||||
pinnedNote: "Nota fixada"
|
pinnedNote: "Nota fixada"
|
||||||
pinned: "Fixar al perfil"
|
pinned: "Fixar al perfil"
|
||||||
you: "Tu"
|
you: "Tu"
|
||||||
|
@ -127,6 +130,8 @@ unmarkAsSensitive: "Deixar de marcar com a sensible"
|
||||||
enterFileName: "Defineix nom del fitxer"
|
enterFileName: "Defineix nom del fitxer"
|
||||||
mute: "Silencia"
|
mute: "Silencia"
|
||||||
unmute: "Deixa de silenciar"
|
unmute: "Deixa de silenciar"
|
||||||
|
renoteMute: "Silenciar Renotes"
|
||||||
|
renoteUnmute: "Treure el silenci de les renotes"
|
||||||
block: "Bloqueja"
|
block: "Bloqueja"
|
||||||
unblock: "Desbloqueja"
|
unblock: "Desbloqueja"
|
||||||
suspend: "Suspèn"
|
suspend: "Suspèn"
|
||||||
|
@ -136,6 +141,8 @@ unblockConfirm: "Vols desbloquejar-lo?"
|
||||||
suspendConfirm: "Estàs segur que vols suspendre aquest compte?"
|
suspendConfirm: "Estàs segur que vols suspendre aquest compte?"
|
||||||
unsuspendConfirm: "Estàs segur que vols treure la suspensió d'aquest compte?"
|
unsuspendConfirm: "Estàs segur que vols treure la suspensió d'aquest compte?"
|
||||||
selectList: "Tria una llista"
|
selectList: "Tria una llista"
|
||||||
|
editList: "Editar llista"
|
||||||
|
selectChannel: "Selecciona un canal"
|
||||||
selectAntenna: "Tria una antena"
|
selectAntenna: "Tria una antena"
|
||||||
editAntenna: "Modificar antena"
|
editAntenna: "Modificar antena"
|
||||||
selectWidget: "Triar un giny"
|
selectWidget: "Triar un giny"
|
||||||
|
|
|
@ -1176,6 +1176,8 @@ _announcement:
|
||||||
readConfirmText: "This will mark the contents of \"{title}\" as read."
|
readConfirmText: "This will mark the contents of \"{title}\" as read."
|
||||||
shouldNotBeUsedToPresentPermanentInfo: "As it may significantly impact the user experience for new users, it is recommended to use notifications in the flow information rather than stock information."
|
shouldNotBeUsedToPresentPermanentInfo: "As it may significantly impact the user experience for new users, it is recommended to use notifications in the flow information rather than stock information."
|
||||||
dialogAnnouncementUxWarn: "Having two or more dialog-style notifications simultaneously can significantly impact the user experience, so please use them carefully."
|
dialogAnnouncementUxWarn: "Having two or more dialog-style notifications simultaneously can significantly impact the user experience, so please use them carefully."
|
||||||
|
silence: "No notification"
|
||||||
|
silenceDescription: "Turning this on will skip the notification of this announcement and the user won't need to read it."
|
||||||
_initialAccountSetting:
|
_initialAccountSetting:
|
||||||
accountCreated: "Your account was successfully created!"
|
accountCreated: "Your account was successfully created!"
|
||||||
letsStartAccountSetup: "For starters, let's set up your profile."
|
letsStartAccountSetup: "For starters, let's set up your profile."
|
||||||
|
|
|
@ -616,9 +616,9 @@ notificationType: "Type de notifications"
|
||||||
edit: "Editer"
|
edit: "Editer"
|
||||||
emailServer: "Serveur de messagerie"
|
emailServer: "Serveur de messagerie"
|
||||||
enableEmail: "Activer la distribution de courriel"
|
enableEmail: "Activer la distribution de courriel"
|
||||||
emailConfigInfo: "Utilisé pour confirmer votre adresse de courriel et la réinitialisation de votre mot de passe en cas d’oubli."
|
emailConfigInfo: "Utilisé pour confirmer votre adresse e-mail et réinitialiser votre mot de passe en cas d’oubli"
|
||||||
email: "E-mail "
|
email: "E-mail "
|
||||||
emailAddress: "Adresses e-mail"
|
emailAddress: "Adresse e-mail"
|
||||||
smtpConfig: "Paramètres du serveur SMTP"
|
smtpConfig: "Paramètres du serveur SMTP"
|
||||||
smtpHost: "Serveur distant"
|
smtpHost: "Serveur distant"
|
||||||
smtpPort: "Port"
|
smtpPort: "Port"
|
||||||
|
@ -764,7 +764,7 @@ inUse: "utilisé"
|
||||||
editCode: "Modifier le code"
|
editCode: "Modifier le code"
|
||||||
apply: "Appliquer"
|
apply: "Appliquer"
|
||||||
receiveAnnouncementFromInstance: "Recevoir les messages d'information de l'instance"
|
receiveAnnouncementFromInstance: "Recevoir les messages d'information de l'instance"
|
||||||
emailNotification: "Notifications par mail"
|
emailNotification: "Notifications par courriel"
|
||||||
publish: "Public"
|
publish: "Public"
|
||||||
inChannelSearch: "Chercher dans le canal"
|
inChannelSearch: "Chercher dans le canal"
|
||||||
useReactionPickerForContextMenu: "Clic-droit pour ouvrir le panneau de réactions"
|
useReactionPickerForContextMenu: "Clic-droit pour ouvrir le panneau de réactions"
|
||||||
|
@ -946,6 +946,7 @@ unsubscribePushNotification: "Désactiver les notifications push"
|
||||||
pushNotificationAlreadySubscribed: "Les notifications push sont déjà activées"
|
pushNotificationAlreadySubscribed: "Les notifications push sont déjà activées"
|
||||||
pushNotificationNotSupported: "Votre navigateur ou votre instance ne prend pas en charge les notifications push"
|
pushNotificationNotSupported: "Votre navigateur ou votre instance ne prend pas en charge les notifications push"
|
||||||
sendPushNotificationReadMessage: "Supprimer les notifications push une fois que les notifications ou messages pertinents ont été lus."
|
sendPushNotificationReadMessage: "Supprimer les notifications push une fois que les notifications ou messages pertinents ont été lus."
|
||||||
|
sendPushNotificationReadMessageCaption: "Cela peut augmenter la consommation de batterie de votre appareil."
|
||||||
windowMaximize: "Maximiser"
|
windowMaximize: "Maximiser"
|
||||||
windowMinimize: "Minimaliser"
|
windowMinimize: "Minimaliser"
|
||||||
windowRestore: "Restaurer"
|
windowRestore: "Restaurer"
|
||||||
|
@ -986,6 +987,7 @@ thisPostMayBeAnnoyingIgnore: "Publier quand-même"
|
||||||
collapseRenotes: "Réduire les renotes déjà vues"
|
collapseRenotes: "Réduire les renotes déjà vues"
|
||||||
internalServerError: "Erreur interne du serveur"
|
internalServerError: "Erreur interne du serveur"
|
||||||
copyErrorInfo: "Copier les détails de l’erreur"
|
copyErrorInfo: "Copier les détails de l’erreur"
|
||||||
|
joinThisServer: "S'inscrire à cette instance"
|
||||||
exploreOtherServers: "Trouver une autre instance"
|
exploreOtherServers: "Trouver une autre instance"
|
||||||
disableFederationOk: "Désactiver"
|
disableFederationOk: "Désactiver"
|
||||||
postToTheChannel: "Publier au canal"
|
postToTheChannel: "Publier au canal"
|
||||||
|
@ -996,6 +998,7 @@ license: "Licence"
|
||||||
myClips: "Mes clips"
|
myClips: "Mes clips"
|
||||||
retryAllQueuesConfirmText: "Cela peut augmenter temporairement la charge du serveur."
|
retryAllQueuesConfirmText: "Cela peut augmenter temporairement la charge du serveur."
|
||||||
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"
|
||||||
noteIdOrUrl: "Identifiant de la note ou URL"
|
noteIdOrUrl: "Identifiant de la note ou URL"
|
||||||
video: "Vidéo"
|
video: "Vidéo"
|
||||||
videos: "Vidéos"
|
videos: "Vidéos"
|
||||||
|
@ -1022,6 +1025,7 @@ pleaseAgreeAllToContinue: "Pour continuer, veuillez accepter tous les champs ci-
|
||||||
continue: "Continuer"
|
continue: "Continuer"
|
||||||
preservedUsernames: "Noms d'utilisateur·rice réservés"
|
preservedUsernames: "Noms d'utilisateur·rice réservés"
|
||||||
archive: "Archive"
|
archive: "Archive"
|
||||||
|
thisChannelArchived: "Ce canal a été archivé."
|
||||||
displayOfNote: "Affichage de la note"
|
displayOfNote: "Affichage de la note"
|
||||||
initialAccountSetting: "Configuration initiale du profil"
|
initialAccountSetting: "Configuration initiale du profil"
|
||||||
youFollowing: "Abonné·e"
|
youFollowing: "Abonné·e"
|
||||||
|
@ -1033,6 +1037,7 @@ failedToPreviewUrl: "Aperçu d'URL échoué"
|
||||||
update: "Mettre à jour"
|
update: "Mettre à jour"
|
||||||
later: "Plus tard"
|
later: "Plus tard"
|
||||||
goToMisskey: "Retour vers Misskey"
|
goToMisskey: "Retour vers Misskey"
|
||||||
|
installed: "Installé"
|
||||||
expirationDate: "Date d’expiration"
|
expirationDate: "Date d’expiration"
|
||||||
waitingForMailAuth: "En attente de la vérification de l'adresse courriel"
|
waitingForMailAuth: "En attente de la vérification de l'adresse courriel"
|
||||||
usedAt: "Utilisé le"
|
usedAt: "Utilisé le"
|
||||||
|
@ -1049,6 +1054,7 @@ pastAnnouncements: "Annonces passées"
|
||||||
replies: "Répondre"
|
replies: "Répondre"
|
||||||
renotes: "Renoter"
|
renotes: "Renoter"
|
||||||
loadReplies: "Inclure les réponses"
|
loadReplies: "Inclure les réponses"
|
||||||
|
loadConversation: "Afficher la conversation"
|
||||||
pinnedList: "Liste épinglée"
|
pinnedList: "Liste épinglée"
|
||||||
notifyNotes: "Notifier à propos des nouvelles notes"
|
notifyNotes: "Notifier à propos des nouvelles notes"
|
||||||
authentication: "Authentification"
|
authentication: "Authentification"
|
||||||
|
@ -1082,15 +1088,24 @@ refreshing: "Rafraîchissement..."
|
||||||
pullDownToRefresh: "Tirer vers le bas pour rafraîchir"
|
pullDownToRefresh: "Tirer vers le bas pour rafraîchir"
|
||||||
disableStreamingTimeline: "Désactiver les mises à jour en temps réel de la ligne du temps"
|
disableStreamingTimeline: "Désactiver les mises à jour en temps réel de la ligne du temps"
|
||||||
useGroupedNotifications: "Grouper les notifications"
|
useGroupedNotifications: "Grouper les notifications"
|
||||||
|
signupPendingError: "Un problème est survenu lors de la vérification de votre adresse e-mail. Le lien a peut-être expiré."
|
||||||
|
cwNotationRequired: "Si « Masquer le contenu » est activé, une description doit être fournie."
|
||||||
|
doReaction: "Réagir"
|
||||||
_announcement:
|
_announcement:
|
||||||
readConfirmTitle: "Marquer comme lu ?"
|
readConfirmTitle: "Marquer comme lu ?"
|
||||||
|
shouldNotBeUsedToPresentPermanentInfo: "Puisque cela pourrait nuire considérablement à l'expérience utilisateur pour les nouveaux utilisateurs, il est recommandé d'utiliser les annonces pour afficher des informations temporaires plutôt que des informations persistantes."
|
||||||
|
dialogAnnouncementUxWarn: "Avoir deux ou plus annonces de style dialogue en même temps pourrait nuire considérablement à l'expérience utilisateur. Veuillez les utiliser avec caution."
|
||||||
|
silence: "Ne pas me notifier"
|
||||||
|
silenceDescription: "Si activée, vous ne recevrez pas de notifications sur les annonces et n'aurez pas besoin de les marquer comme lues."
|
||||||
_initialAccountSetting:
|
_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 !"
|
||||||
|
youCanContinueTutorial: "Vous pouvez procéder au tutoriel sur l'utilisation de {nom}(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 ?"
|
||||||
_initialTutorial:
|
_initialTutorial:
|
||||||
|
launchTutorial: "Visionner le tutoriel"
|
||||||
title: "Tutoriel"
|
title: "Tutoriel"
|
||||||
wellDone: "Bien joué !"
|
wellDone: "Bien joué !"
|
||||||
skipAreYouSure: "Quitter le tutoriel ?"
|
skipAreYouSure: "Quitter le tutoriel ?"
|
||||||
|
@ -1108,9 +1123,62 @@ _initialTutorial:
|
||||||
title: "Qu'est-ce que les réactions ?"
|
title: "Qu'est-ce que les réactions ?"
|
||||||
description: "Vous pouvez ajouter des « réactions » aux notes. Les réactions vous permettent d'exprimer à l'aise des nuances qui ne peuvent pas être exprimées par des mentions j'aime."
|
description: "Vous pouvez ajouter des « réactions » aux notes. Les réactions vous permettent d'exprimer à l'aise des nuances qui ne peuvent pas être exprimées par des mentions j'aime."
|
||||||
letsTryReacting: "Des réactions peuvent être ajoutées en cliquant sur le bouton « + » de la note. Essayez d'ajouter une réaction à cet exemple de note !"
|
letsTryReacting: "Des réactions peuvent être ajoutées en cliquant sur le bouton « + » de la note. Essayez d'ajouter une réaction à cet exemple de note !"
|
||||||
|
reactToContinue: "Ajoutez une réaction pour procéder."
|
||||||
|
reactNotification: "Vous recevez des notifications en temps réel lorsque quelqu'un réagit à votre note."
|
||||||
|
reactDone: "Vous pouvez annuler la réaction en cliquant sur le bouton « - » ."
|
||||||
|
_timeline:
|
||||||
|
title: "Fonctionnement des fils"
|
||||||
|
description1: "Misskey offre plusieurs fils selon l'usage (certains peuvent être désactivés par le serveur)."
|
||||||
|
home: "Vous pouvez voir les notes des utilisateurs auxquels vous êtes abonné·e."
|
||||||
|
local: "Vous pouvez voir les notes de tous les utilisateurs sur cette instance."
|
||||||
|
social: "Les notes des fils principal et local sont affichées."
|
||||||
|
global: "Vous pouvez voir les notes de toutes les instances connectées."
|
||||||
|
description2: "Vous pouvez passer d'un fil à l'autre en haut de l'écran à tout moment."
|
||||||
|
description3: "De plus, il y a les fils des listes et des canaux. Pour plus de détails, consultez {link}."
|
||||||
|
_postNote:
|
||||||
|
title: "Paramètres de la publication de note"
|
||||||
|
description1: "Lorsque vous publiez des notes sur Misskey, diverses options sont disponibles. Voici le formulaire de publication."
|
||||||
|
_visibility:
|
||||||
|
description: "Vous pouvez choisir qui peut voir vos notes."
|
||||||
|
public: "Visible à tous les utilisateurs."
|
||||||
|
home: "Uniquement visible sur le fil principal. Les utilisateurs pourront la voir en visitant ton profil, en s'abonnant à vous et par les renotes."
|
||||||
|
followers: "Uniquement visible à vos abonnés. Elle ne pourra être renotée que par vous-même."
|
||||||
|
direct: "Uniquement visible aux utilisateurs de votre choix. Les récipients seront notifiés. Cette option peut être utilisée comme alternative aux messages directs."
|
||||||
|
doNotSendConfidencialOnDirect1: "Faites attention quand vous envoyez vos informations sensibles !"
|
||||||
|
doNotSendConfidencialOnDirect2: "Les administrateurs de l'instance destinataire peuvent voir toutes les notes publiées. Soyez prudent·e avec vos informations sensibles quand vous envoyez des notes directes aux utilisateurs dont vous ne vous fiez pas aux instances."
|
||||||
|
localOnly: "Désactiver la fédération de la note aux autres instances. Les utilisateurs des autres instances ne pourront pas voir directement la note quelle que soit l'étendue de la publication mentionnée ci-dessus."
|
||||||
|
_cw:
|
||||||
|
title: "Masquer le contenu (CW)"
|
||||||
|
description: "Au lieu du corps du texte, le contenu du champ « commentaires » s'affichera. Appuyez sur « afficher le contenu » pour voir le corps du texte."
|
||||||
|
_exampleNote:
|
||||||
|
cw: "Attention : cela vous donnera faim !"
|
||||||
|
note: "J'ai mangé un beignet enrobé de chocolat 🍩😋"
|
||||||
|
useCases: "Utilisé pour désigner certaines notes selon les règles du serveur ou pour cacher des spoilers ou des textes sensibles."
|
||||||
|
_howToMakeAttachmentsSensitive:
|
||||||
|
title: "Comment marquer un fichier joint comme sensible ?"
|
||||||
|
description: "Attachez un drapeau « sensible » aux fichiers joints selon les règles du serveur ou si vous ne voulez pas que le fichier soit vu directement."
|
||||||
|
tryThisFile: "Essayez de marquer l'image jointe à ce formulaire de publication comme sensible !"
|
||||||
|
_exampleNote:
|
||||||
|
note: "Oups, j'ai échoué à ouvrir le couvercle du natto..."
|
||||||
|
method: "Pour marquer un fichier joint comme sensible, cliquez sur la vignette du fichier, ouvrez le menu et cliquez sur « marquer comme sensible » ."
|
||||||
|
sensitiveSucceeded: "Quand vous joignez des fichiers, veuillez indiquer la sensibilité selon les règles du serveur."
|
||||||
|
doItToContinue: "Marquez le fichier joint comme sensible pour procéder."
|
||||||
|
_done:
|
||||||
|
title: "Le tutoriel est terminé ! 🎉"
|
||||||
|
description: "Les fonctionnalités introduites ici ne sont que quelques-unes. Pour savoir plus sur l'utilisation de Misskey, veuillez consulter {lien}."
|
||||||
|
_timelineDescription:
|
||||||
|
home: "Sur le fil principal, vous pouvez voir les notes des utilisateurs auxquels vous êtes abonné·e."
|
||||||
|
local: "Sur le fil local, vous pouvez voir les notes de tous les utilisateurs sur cette instance."
|
||||||
|
social: "Sur le fil social, les notes des fils principal et local sont affichées."
|
||||||
|
global: "Sur le fil global, vous pouvez voir les notes de toutes les instances connectées."
|
||||||
_serverSettings:
|
_serverSettings:
|
||||||
iconUrl: "URL de l’icône"
|
iconUrl: "URL de l’icône"
|
||||||
|
appIconResolutionMustBe: "La résolution doit être au moins {resolution}."
|
||||||
|
shortName: "Nom court"
|
||||||
|
shortNameDescription: "Si le nom officiel de l'instance est long, cette abréviation peut être affichée à la place."
|
||||||
fanoutTimelineDescription: "Si activée, la performance de la récupération de la chronologie augmentera considérablement et la charge sur la base de données sera réduite. En revanche, l'utilisation de la mémoire de Redis augmentera. Considérez désactiver cette option si le serveur est bas en mémoire ou instable."
|
fanoutTimelineDescription: "Si activée, la performance de la récupération de la chronologie augmentera considérablement et la charge sur la base de données sera réduite. En revanche, l'utilisation de la mémoire de Redis augmentera. Considérez désactiver cette option si le serveur est bas en mémoire ou instable."
|
||||||
|
fanoutTimelineDbFallback: "Recours à la base de données"
|
||||||
|
fanoutTimelineDbFallbackDescription: "Si activée, une demande supplémentaire à la base de données est effectuée comme solution de rechange quand le fil n'est pas mis en cache. Si désactivée, la demande à la base de données n'est pas effectuée, ce qui réduit davantage la charge du serveur mais limite l'étendue du fil récupérable."
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "Migrer un autre compte vers le présent compte"
|
moveFrom: "Migrer un autre compte vers le présent compte"
|
||||||
moveFromSub: "Créer un alias vers un autre compte"
|
moveFromSub: "Créer un alias vers un autre compte"
|
||||||
|
@ -1221,7 +1289,7 @@ _achievements:
|
||||||
_viewInstanceChart:
|
_viewInstanceChart:
|
||||||
title: "Analyste"
|
title: "Analyste"
|
||||||
_outputHelloWorldOnScratchpad:
|
_outputHelloWorldOnScratchpad:
|
||||||
title: "Bonjour tout le monde !"
|
title: "Hello, world!"
|
||||||
_open3windows:
|
_open3windows:
|
||||||
title: "Multi-fenêtres"
|
title: "Multi-fenêtres"
|
||||||
_driveFolderCircularReference:
|
_driveFolderCircularReference:
|
||||||
|
@ -1243,6 +1311,12 @@ _achievements:
|
||||||
flavor: "Attendez une minute, vous êtes sur le mauvais site web ?"
|
flavor: "Attendez une minute, vous êtes sur le mauvais site web ?"
|
||||||
_brainDiver:
|
_brainDiver:
|
||||||
flavor: "Misskey-Misskey La-Tu-Ma"
|
flavor: "Misskey-Misskey La-Tu-Ma"
|
||||||
|
_smashTestNotificationButton:
|
||||||
|
title: "Débordement de tests"
|
||||||
|
description: "Détruire le bouton de test de notifications dans un intervalle extrêmement court"
|
||||||
|
_tutorialCompleted:
|
||||||
|
title: "Diplôme de la course élémentaire de Misskey"
|
||||||
|
description: "Terminer le tutoriel"
|
||||||
_role:
|
_role:
|
||||||
new: "Nouveau rôle"
|
new: "Nouveau rôle"
|
||||||
edit: "Modifier le rôle"
|
edit: "Modifier le rôle"
|
||||||
|
@ -1268,6 +1342,7 @@ _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"
|
||||||
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"
|
||||||
_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"
|
||||||
|
@ -1304,7 +1379,7 @@ _ad:
|
||||||
adsSettings: "Paramètres des publicités"
|
adsSettings: "Paramètres des publicités"
|
||||||
notesPerOneAd: "Intervalle de diffusion de publicités lors de la mise à jour en temps réel (nombre de notes par publicité)"
|
notesPerOneAd: "Intervalle de diffusion de publicités lors de la mise à jour en temps réel (nombre de notes par publicité)"
|
||||||
setZeroToDisable: "Mettre cette valeur à 0 pour désactiver la diffusion de publicités lors de la mise à jour en temps réel"
|
setZeroToDisable: "Mettre cette valeur à 0 pour désactiver la diffusion de publicités lors de la mise à jour en temps réel"
|
||||||
adsTooClose: "L'expérience de l'utilisateur peut être gravement compromise par un intervalle de diffusion de publicités extrêmement court."
|
adsTooClose: "L'expérience utilisateur peut être gravement compromise par un intervalle de diffusion de publicités extrêmement court."
|
||||||
_forgotPassword:
|
_forgotPassword:
|
||||||
enterEmail: "Entrez ici l'adresse e-mail que vous avez enregistrée pour votre compte. Un lien vous permettant de réinitialiser votre mot de passe sera envoyé à cette adresse."
|
enterEmail: "Entrez ici l'adresse e-mail que vous avez enregistrée pour votre compte. Un lien vous permettant de réinitialiser votre mot de passe sera envoyé à cette adresse."
|
||||||
ifNoEmail: "Si vous n'avez pas enregistré d'adresse e-mail, merci de contacter l'administrateur·rice de votre instance."
|
ifNoEmail: "Si vous n'avez pas enregistré d'adresse e-mail, merci de contacter l'administrateur·rice de votre instance."
|
||||||
|
@ -1380,6 +1455,7 @@ _channel:
|
||||||
notesCount: "{n} Notes"
|
notesCount: "{n} Notes"
|
||||||
nameAndDescription: "Nom et description"
|
nameAndDescription: "Nom et description"
|
||||||
nameOnly: "Nom seulement"
|
nameOnly: "Nom seulement"
|
||||||
|
allowRenoteToExternal: "Permettre la renote et la citation hors du canal"
|
||||||
_menuDisplay:
|
_menuDisplay:
|
||||||
sideFull: "Latéral"
|
sideFull: "Latéral"
|
||||||
sideIcon: "Latéral (icônes)"
|
sideIcon: "Latéral (icônes)"
|
||||||
|
@ -1585,7 +1661,7 @@ _widgets:
|
||||||
chooseList: "Sélectionner une liste"
|
chooseList: "Sélectionner une liste"
|
||||||
_cw:
|
_cw:
|
||||||
hide: "Masquer"
|
hide: "Masquer"
|
||||||
show: "Afficher plus …"
|
show: "Afficher le contenu"
|
||||||
chars: "{count} caractères"
|
chars: "{count} caractères"
|
||||||
files: "{count} fichiers"
|
files: "{count} fichiers"
|
||||||
_poll:
|
_poll:
|
||||||
|
@ -1754,6 +1830,7 @@ _notification:
|
||||||
unreadAntennaNote: "Antenne {name}"
|
unreadAntennaNote: "Antenne {name}"
|
||||||
emptyPushNotificationMessage: "Les notifications push ont été mises à jour"
|
emptyPushNotificationMessage: "Les notifications push ont été mises à jour"
|
||||||
achievementEarned: "Accomplissement"
|
achievementEarned: "Accomplissement"
|
||||||
|
testNotification: "Tester la notification"
|
||||||
reactedBySomeUsers: "{n} utilisateur·rice·s ont réagi"
|
reactedBySomeUsers: "{n} utilisateur·rice·s ont réagi"
|
||||||
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"
|
||||||
|
@ -1798,7 +1875,7 @@ _deck:
|
||||||
tl: "Fil"
|
tl: "Fil"
|
||||||
antenna: "Antennes"
|
antenna: "Antennes"
|
||||||
list: "Listes"
|
list: "Listes"
|
||||||
channel: "Canaux"
|
channel: "Canal"
|
||||||
mentions: "Mentions"
|
mentions: "Mentions"
|
||||||
direct: "Direct"
|
direct: "Direct"
|
||||||
_webhookSettings:
|
_webhookSettings:
|
||||||
|
|
11
locales/index.d.ts
vendored
11
locales/index.d.ts
vendored
|
@ -1295,6 +1295,8 @@ export interface Locale {
|
||||||
"shortName": string;
|
"shortName": string;
|
||||||
"shortNameDescription": string;
|
"shortNameDescription": string;
|
||||||
"fanoutTimelineDescription": string;
|
"fanoutTimelineDescription": string;
|
||||||
|
"fanoutTimelineDbFallback": string;
|
||||||
|
"fanoutTimelineDbFallbackDescription": string;
|
||||||
};
|
};
|
||||||
"_accountMigration": {
|
"_accountMigration": {
|
||||||
"moveFrom": string;
|
"moveFrom": string;
|
||||||
|
@ -1959,6 +1961,15 @@ export interface Locale {
|
||||||
"yearsAgo": string;
|
"yearsAgo": string;
|
||||||
"invalid": string;
|
"invalid": string;
|
||||||
};
|
};
|
||||||
|
"_timeIn": {
|
||||||
|
"seconds": string;
|
||||||
|
"minutes": string;
|
||||||
|
"hours": string;
|
||||||
|
"days": string;
|
||||||
|
"weeks": string;
|
||||||
|
"months": string;
|
||||||
|
"years": string;
|
||||||
|
};
|
||||||
"_time": {
|
"_time": {
|
||||||
"second": string;
|
"second": string;
|
||||||
"minute": string;
|
"minute": string;
|
||||||
|
|
|
@ -241,7 +241,7 @@ publishing: "Pubblicazione"
|
||||||
notResponding: "Nessuna risposta"
|
notResponding: "Nessuna risposta"
|
||||||
instanceFollowing: "Seguiti dall'istanza"
|
instanceFollowing: "Seguiti dall'istanza"
|
||||||
instanceFollowers: "Follower dell'istanza"
|
instanceFollowers: "Follower dell'istanza"
|
||||||
instanceUsers: "Utenti dell'istanza"
|
instanceUsers: "Profili nell'istanza"
|
||||||
changePassword: "Aggiorna Password"
|
changePassword: "Aggiorna Password"
|
||||||
security: "Sicurezza"
|
security: "Sicurezza"
|
||||||
retypedNotMatch: "Le password non corrispondono."
|
retypedNotMatch: "Le password non corrispondono."
|
||||||
|
@ -362,8 +362,8 @@ inMb: "in Megabytes"
|
||||||
bannerUrl: "URL dell'immagine d'intestazione"
|
bannerUrl: "URL dell'immagine d'intestazione"
|
||||||
backgroundImageUrl: "URL dello sfondo"
|
backgroundImageUrl: "URL dello sfondo"
|
||||||
basicInfo: "Informazioni fondamentali"
|
basicInfo: "Informazioni fondamentali"
|
||||||
pinnedUsers: "Utenti in evidenza"
|
pinnedUsers: "Profili in evidenza"
|
||||||
pinnedUsersDescription: "Elenca gli/le utenti che vuoi fissare in cima alla pagina \"Esplora\", un@ per riga."
|
pinnedUsersDescription: "Elenca i profili delle persone che vuoi fissare nella pagina \"Esplora\"."
|
||||||
pinnedPages: "Pagine in evidenza"
|
pinnedPages: "Pagine in evidenza"
|
||||||
pinnedPagesDescription: "Specifica il percorso delle pagine che vuoi fissare in cima alla pagina dell'istanza. Una pagina per riga."
|
pinnedPagesDescription: "Specifica il percorso delle pagine che vuoi fissare in cima alla pagina dell'istanza. Una pagina per riga."
|
||||||
pinnedClipId: "ID della Clip in evidenza"
|
pinnedClipId: "ID della Clip in evidenza"
|
||||||
|
@ -391,7 +391,7 @@ antennaKeywordsDescription: "Sparando con uno spazio indichi la condizione E (an
|
||||||
notifyAntenna: "Invia notifiche delle nuove note"
|
notifyAntenna: "Invia notifiche delle nuove note"
|
||||||
withFileAntenna: "Solo note con file in allegato"
|
withFileAntenna: "Solo note con file in allegato"
|
||||||
enableServiceworker: "Abilita ServiceWorker"
|
enableServiceworker: "Abilita ServiceWorker"
|
||||||
antennaUsersDescription: "Inserisci solo un nome utente per riga"
|
antennaUsersDescription: "Elenca un nome utente per riga"
|
||||||
caseSensitive: "Sensibile alla distinzione tra maiuscole e minuscole"
|
caseSensitive: "Sensibile alla distinzione tra maiuscole e minuscole"
|
||||||
withReplies: "Includere le risposte"
|
withReplies: "Includere le risposte"
|
||||||
connectedTo: "Connessione ai seguenti profili:"
|
connectedTo: "Connessione ai seguenti profili:"
|
||||||
|
@ -401,11 +401,11 @@ silence: "Silenzia"
|
||||||
silenceConfirm: "Vuoi davvero silenziare questo profilo?"
|
silenceConfirm: "Vuoi davvero silenziare questo profilo?"
|
||||||
unsilence: "Riattiva"
|
unsilence: "Riattiva"
|
||||||
unsilenceConfirm: "Vuoi davvero riattivare questo profilo?"
|
unsilenceConfirm: "Vuoi davvero riattivare questo profilo?"
|
||||||
popularUsers: "Utenti popolari"
|
popularUsers: "Profili popolari"
|
||||||
recentlyUpdatedUsers: "Utenti attivi di recente"
|
recentlyUpdatedUsers: "Utenti attivi di recente"
|
||||||
recentlyRegisteredUsers: "Utenti registrati di recente"
|
recentlyRegisteredUsers: "Profili iscritti di recente"
|
||||||
recentlyDiscoveredUsers: "Utenti scoperti di recente"
|
recentlyDiscoveredUsers: "Profili scoperti di recente"
|
||||||
exploreUsersCount: "Ci sono {count} utenti"
|
exploreUsersCount: "Ci sono {count} profili"
|
||||||
exploreFediverse: "Esplora il Fediverso"
|
exploreFediverse: "Esplora il Fediverso"
|
||||||
popularTags: "Tag di tendenza"
|
popularTags: "Tag di tendenza"
|
||||||
userList: "Liste"
|
userList: "Liste"
|
||||||
|
@ -415,8 +415,8 @@ administrator: "Amministratore"
|
||||||
token: "Token"
|
token: "Token"
|
||||||
2fa: "Autenticazione a due fattori"
|
2fa: "Autenticazione a due fattori"
|
||||||
setupOf2fa: "Impostare l'autenticazione a due fattori"
|
setupOf2fa: "Impostare l'autenticazione a due fattori"
|
||||||
totp: "App di autenticazione"
|
totp: "App di autenticazione a due fattori (2FA/MFA)"
|
||||||
totpDescription: "Inserisci un codice OTP tramite un'app di autenticazione"
|
totpDescription: "Puoi autenticarti inserendo un codice OTP tramite la tua App di autenticazione a due fattori (2FA/MFA)"
|
||||||
moderator: "Moderatore"
|
moderator: "Moderatore"
|
||||||
moderation: "moderazione"
|
moderation: "moderazione"
|
||||||
moderationNote: "Promemoria di moderazione"
|
moderationNote: "Promemoria di moderazione"
|
||||||
|
@ -463,7 +463,7 @@ invitations: "Invita"
|
||||||
invitationCode: "Codice di invito"
|
invitationCode: "Codice di invito"
|
||||||
checking: "Confermando"
|
checking: "Confermando"
|
||||||
available: "Disponibile"
|
available: "Disponibile"
|
||||||
unavailable: "Il nome utente è già in uso"
|
unavailable: "Non puoi usarlo"
|
||||||
usernameInvalidFormat: "Il nome utente deve avere solo caratteri alfanumerici e trattino basso '_'"
|
usernameInvalidFormat: "Il nome utente deve avere solo caratteri alfanumerici e trattino basso '_'"
|
||||||
tooShort: "Troppo breve"
|
tooShort: "Troppo breve"
|
||||||
tooLong: "Troppo lungo"
|
tooLong: "Troppo lungo"
|
||||||
|
@ -563,13 +563,13 @@ scratchpadDescription: "Lo Scratchpad offre un ambiente per esperimenti di AiScr
|
||||||
output: "Uscita"
|
output: "Uscita"
|
||||||
script: "Script"
|
script: "Script"
|
||||||
disablePagesScript: "Disabilita AiScript nelle pagine"
|
disablePagesScript: "Disabilita AiScript nelle pagine"
|
||||||
updateRemoteUser: "Aggiornare le informazioni di utente remot@"
|
updateRemoteUser: "Aggiorna le informazioni dal profilo remoto"
|
||||||
deleteAllFiles: "Elimina tutti i file"
|
deleteAllFiles: "Elimina tutti i file"
|
||||||
deleteAllFilesConfirm: "Vuoi davvero eliminare tutti i file?"
|
deleteAllFilesConfirm: "Vuoi davvero eliminare tutti i file?"
|
||||||
removeAllFollowing: "Annulla tutti i follow"
|
removeAllFollowing: "Annulla tutti i follow"
|
||||||
removeAllFollowingDescription: "Cancella tutti i follows del server {host}. Per favore, esegui se, ad esempio, l'istanza non esiste più."
|
removeAllFollowingDescription: "Cancella tutti i follows del server {host}. Per favore, esegui se, ad esempio, l'istanza non esiste più."
|
||||||
userSuspended: "L'utente è in sospensione"
|
userSuspended: "L'utente è in sospensione"
|
||||||
userSilenced: "L'utente è silenziat@."
|
userSilenced: "Profilo silente."
|
||||||
yourAccountSuspendedTitle: "Questo profilo è sospeso"
|
yourAccountSuspendedTitle: "Questo profilo è sospeso"
|
||||||
yourAccountSuspendedDescription: "Questo profilo è stato sospeso a causa di una violazione del regolamento. Per informazioni, contattare l'amministrazione. Si prega di non creare un nuovo account."
|
yourAccountSuspendedDescription: "Questo profilo è stato sospeso a causa di una violazione del regolamento. Per informazioni, contattare l'amministrazione. Si prega di non creare un nuovo account."
|
||||||
tokenRevoked: "Il token non è valido"
|
tokenRevoked: "Il token non è valido"
|
||||||
|
@ -741,8 +741,8 @@ reloadToApplySetting: "Le tue preferenze verranno impostate dopo il ricaricament
|
||||||
needReloadToApply: "È necessario riavviare per rendere effettive le modifiche."
|
needReloadToApply: "È necessario riavviare per rendere effettive le modifiche."
|
||||||
showTitlebar: "Visualizza la barra del titolo"
|
showTitlebar: "Visualizza la barra del titolo"
|
||||||
clearCache: "Svuota la cache"
|
clearCache: "Svuota la cache"
|
||||||
onlineUsersCount: "{n} utenti online"
|
onlineUsersCount: "{n} persone online"
|
||||||
nUsers: "{n} utenti"
|
nUsers: "{n} profili"
|
||||||
nNotes: "{n}Note"
|
nNotes: "{n}Note"
|
||||||
sendErrorReports: "Invia segnalazioni di errori"
|
sendErrorReports: "Invia segnalazioni di errori"
|
||||||
sendErrorReportsDescription: "Quando abilitato, se si verifica un problema, informazioni dettagliate sugli errori verranno condivise con Misskey in modo da aiutare a migliorare la qualità del software.\nCiò include informazioni come la versione del sistema operativo, il tipo di navigatore web che usi, la cronologia delle attività, ecc."
|
sendErrorReportsDescription: "Quando abilitato, se si verifica un problema, informazioni dettagliate sugli errori verranno condivise con Misskey in modo da aiutare a migliorare la qualità del software.\nCiò include informazioni come la versione del sistema operativo, il tipo di navigatore web che usi, la cronologia delle attività, ecc."
|
||||||
|
@ -788,7 +788,7 @@ addDescription: "Aggiungi descrizione"
|
||||||
userPagePinTip: "Qui puoi appuntare note, premendo \"Fissa sul profilo\" nel menù delle singole note."
|
userPagePinTip: "Qui puoi appuntare note, premendo \"Fissa sul profilo\" nel menù delle singole note."
|
||||||
notSpecifiedMentionWarning: "Sono stati menzionati profili non inclusi fra i destinatari"
|
notSpecifiedMentionWarning: "Sono stati menzionati profili non inclusi fra i destinatari"
|
||||||
info: "Informazioni"
|
info: "Informazioni"
|
||||||
userInfo: "Informazioni utente"
|
userInfo: "Informazioni sul profilo"
|
||||||
unknown: "Sconosciuto"
|
unknown: "Sconosciuto"
|
||||||
onlineStatus: "Stato di connessione"
|
onlineStatus: "Stato di connessione"
|
||||||
hideOnlineStatus: "Modalità invisibile"
|
hideOnlineStatus: "Modalità invisibile"
|
||||||
|
@ -853,7 +853,7 @@ lastCommunication: "La comunicazione più recente"
|
||||||
resolved: "Risolto"
|
resolved: "Risolto"
|
||||||
unresolved: "Non risolto"
|
unresolved: "Non risolto"
|
||||||
breakFollow: "Non farti più seguire"
|
breakFollow: "Non farti più seguire"
|
||||||
breakFollowConfirm: "Vuoi davvero smettere di seguire questo profilo?"
|
breakFollowConfirm: "Vuoi davvero che questo profilo smetta di seguirti?"
|
||||||
itsOn: "Abilitato"
|
itsOn: "Abilitato"
|
||||||
itsOff: "Disabilitato"
|
itsOff: "Disabilitato"
|
||||||
on: "Acceso"
|
on: "Acceso"
|
||||||
|
@ -911,7 +911,7 @@ noEmailServerWarning: "Il server di posta non è configurato."
|
||||||
thereIsUnresolvedAbuseReportWarning: "Ci sono report non evasi."
|
thereIsUnresolvedAbuseReportWarning: "Ci sono report non evasi."
|
||||||
recommended: "Consigliato"
|
recommended: "Consigliato"
|
||||||
check: "Verifica"
|
check: "Verifica"
|
||||||
driveCapOverrideLabel: "Modificare il limite di spazio per questo utente"
|
driveCapOverrideLabel: "Modificare la capienza del Drive per questo profilo"
|
||||||
driveCapOverrideCaption: "Se viene specificato meno di 0, viene annullato."
|
driveCapOverrideCaption: "Se viene specificato meno di 0, viene annullato."
|
||||||
requireAdminForView: "Per visualizzarli, è necessario aver effettuato l'accesso con un profilo amministratore."
|
requireAdminForView: "Per visualizzarli, è necessario aver effettuato l'accesso con un profilo amministratore."
|
||||||
isSystemAccount: "Questi profili vengono creati e gestiti automaticamente dal sistema"
|
isSystemAccount: "Questi profili vengono creati e gestiti automaticamente dal sistema"
|
||||||
|
@ -1169,6 +1169,8 @@ _announcement:
|
||||||
readConfirmText: "Hai già letto \"{title}˝?"
|
readConfirmText: "Hai già letto \"{title}˝?"
|
||||||
shouldNotBeUsedToPresentPermanentInfo: "Ti consigliamo di utilizzare gli annunci per pubblicare informazioni tempestive e limitate nel tempo, anziché informazioni importanti a lungo andare nel tempo, poiché potrebbero risultare difficili da ritrovare e peggiorare la fruibilità del servizio, specialmente alle nuove persone iscritte."
|
shouldNotBeUsedToPresentPermanentInfo: "Ti consigliamo di utilizzare gli annunci per pubblicare informazioni tempestive e limitate nel tempo, anziché informazioni importanti a lungo andare nel tempo, poiché potrebbero risultare difficili da ritrovare e peggiorare la fruibilità del servizio, specialmente alle nuove persone iscritte."
|
||||||
dialogAnnouncementUxWarn: "Ti consigliamo di usarli con cautela, poiché è molto probabile che avere più di un annuncio in stile \"finestra di dialogo\" peggiori sensibilmente la fruibilità del servizio, specialmente alle nuove persone iscritte."
|
dialogAnnouncementUxWarn: "Ti consigliamo di usarli con cautela, poiché è molto probabile che avere più di un annuncio in stile \"finestra di dialogo\" peggiori sensibilmente la fruibilità del servizio, specialmente alle nuove persone iscritte."
|
||||||
|
silence: "Silenzia gli annunci"
|
||||||
|
silenceDescription: "Se attivi questa opzione, non riceverai notifiche sugli annunci, evitando di contrassegnarle come già lette."
|
||||||
_initialAccountSetting:
|
_initialAccountSetting:
|
||||||
accountCreated: "Il tuo profilo è stato creato!"
|
accountCreated: "Il tuo profilo è stato creato!"
|
||||||
letsStartAccountSetup: "Per iniziare, impostiamo il tuo profilo."
|
letsStartAccountSetup: "Per iniziare, impostiamo il tuo profilo."
|
||||||
|
@ -1822,14 +1824,14 @@ _time:
|
||||||
day: "giorni"
|
day: "giorni"
|
||||||
_2fa:
|
_2fa:
|
||||||
alreadyRegistered: "La configurazione è stata già completata."
|
alreadyRegistered: "La configurazione è stata già completata."
|
||||||
registerTOTP: "Registra un'app di autenticazione"
|
registerTOTP: "Registra una App di autenticazione a due fattori (2FA/MFA)"
|
||||||
step1: "Innanzitutto, installare sul dispositivo un'applicazione di autenticazione come {a} o {b}."
|
step1: "Innanzitutto, installa sul dispositivo un'App di autenticazione come {a} o {b}."
|
||||||
step2: "Quindi, scansionare il codice QR visualizzato con l'app."
|
step2: "Quindi, tramite la App installata, scansiona questo codice QR."
|
||||||
step2Click: "Cliccando sul codice QR, puoi registrarlo con l'app di autenticazione o il portachiavi installato sul tuo dispositivo."
|
step2Click: "Cliccando sul codice QR, puoi registrarlo con l'app di autenticazione o il portachiavi installato sul tuo dispositivo."
|
||||||
step2Uri: "Inserisci il seguente URL se desideri utilizzare una App per PC"
|
step2Uri: "Inserisci il seguente URL se desideri utilizzare una App per PC"
|
||||||
step3Title: "Inserisci il codice di verifica"
|
step3Title: "Inserisci il codice di verifica"
|
||||||
step3: "Inserite il token visualizzato nell'app e il gioco è fatto."
|
step3: "Inserite il token visualizzato nell'app e il gioco è fatto."
|
||||||
setupCompleted: "Impostazione completata"
|
setupCompleted: "Impostazione completata! 🎉"
|
||||||
step4: "D'ora in poi, quando si accede, si inserisce il token nello stesso modo."
|
step4: "D'ora in poi, quando si accede, si inserisce il token nello stesso modo."
|
||||||
securityKeyNotSupported: "Il tuo browser non supporta le chiavi di sicurezza."
|
securityKeyNotSupported: "Il tuo browser non supporta le chiavi di sicurezza."
|
||||||
registerTOTPBeforeKey: "Ti occorre un'app di autenticazione con OTP, prima di registrare la chiave di sicurezza."
|
registerTOTPBeforeKey: "Ti occorre un'app di autenticazione con OTP, prima di registrare la chiave di sicurezza."
|
||||||
|
@ -1874,8 +1876,8 @@ _permissions:
|
||||||
"write:pages": "Gestire pagine"
|
"write:pages": "Gestire pagine"
|
||||||
"read:page-likes": "Visualizzare i \"Mi piace\" di pagine"
|
"read:page-likes": "Visualizzare i \"Mi piace\" di pagine"
|
||||||
"write:page-likes": "Gestire i \"Mi piace\" di pagine"
|
"write:page-likes": "Gestire i \"Mi piace\" di pagine"
|
||||||
"read:user-groups": "Vedi gruppi di utenti"
|
"read:user-groups": "Vedere i gruppi di utenti"
|
||||||
"write:user-groups": "Gestisci gruppi di utenti"
|
"write:user-groups": "Gestire i gruppi di utenti"
|
||||||
"read:channels": "Visualizza canali"
|
"read:channels": "Visualizza canali"
|
||||||
"write:channels": "Gerisci canali"
|
"write:channels": "Gerisci canali"
|
||||||
"read:gallery": "Visualizza la galleria."
|
"read:gallery": "Visualizza la galleria."
|
||||||
|
@ -1930,7 +1932,7 @@ _widgets:
|
||||||
postForm: "Finestra di pubblicazione"
|
postForm: "Finestra di pubblicazione"
|
||||||
slideshow: "Diapositive"
|
slideshow: "Diapositive"
|
||||||
button: "Pulsante"
|
button: "Pulsante"
|
||||||
onlineUsers: "Utenti online"
|
onlineUsers: "Persone online"
|
||||||
jobQueue: "Coda di lavoro"
|
jobQueue: "Coda di lavoro"
|
||||||
serverMetric: "Statistiche server"
|
serverMetric: "Statistiche server"
|
||||||
aiscript: "Console AiScript"
|
aiscript: "Console AiScript"
|
||||||
|
@ -1942,7 +1944,7 @@ _widgets:
|
||||||
clicker: "Cliccaggio"
|
clicker: "Cliccaggio"
|
||||||
_cw:
|
_cw:
|
||||||
hide: "Nascondere"
|
hide: "Nascondere"
|
||||||
show: "Attenzione: continua la lettura"
|
show: "Continua la lettura..."
|
||||||
chars: "{count} caratteri"
|
chars: "{count} caratteri"
|
||||||
files: "{count} file"
|
files: "{count} file"
|
||||||
_poll:
|
_poll:
|
||||||
|
@ -2028,7 +2030,7 @@ _charts:
|
||||||
storageUsageTotal: "Utilizzo totale dell'immagazzinamento"
|
storageUsageTotal: "Utilizzo totale dell'immagazzinamento"
|
||||||
_instanceCharts:
|
_instanceCharts:
|
||||||
requests: "Richieste"
|
requests: "Richieste"
|
||||||
users: "Variazione del numero di utenti"
|
users: "Variazione del numero di profili"
|
||||||
usersTotal: "Totale cumulativo di utenti"
|
usersTotal: "Totale cumulativo di utenti"
|
||||||
notes: "Variazione del numero di note"
|
notes: "Variazione del numero di note"
|
||||||
notesTotal: "Totale cumulato di note"
|
notesTotal: "Totale cumulato di note"
|
||||||
|
@ -2089,8 +2091,8 @@ _pages:
|
||||||
font: "Tipo di carattere"
|
font: "Tipo di carattere"
|
||||||
fontSerif: "Serif"
|
fontSerif: "Serif"
|
||||||
fontSansSerif: "Sans serif"
|
fontSansSerif: "Sans serif"
|
||||||
eyeCatchingImageSet: "Imposta un'immagine attrattiva"
|
eyeCatchingImageSet: "Imposta un'immagine attraente"
|
||||||
eyeCatchingImageRemove: "Elimina l'anteprima immagine"
|
eyeCatchingImageRemove: "Elimina immagine attraente"
|
||||||
chooseBlock: "Aggiungi blocco"
|
chooseBlock: "Aggiungi blocco"
|
||||||
selectType: "Seleziona tipo"
|
selectType: "Seleziona tipo"
|
||||||
contentBlocks: "Contenuto"
|
contentBlocks: "Contenuto"
|
||||||
|
|
|
@ -1282,6 +1282,8 @@ _serverSettings:
|
||||||
shortName: "略称"
|
shortName: "略称"
|
||||||
shortNameDescription: "サーバーの正式名称が長い場合に、代わりに表示することのできる略称や通称。"
|
shortNameDescription: "サーバーの正式名称が長い場合に、代わりに表示することのできる略称や通称。"
|
||||||
fanoutTimelineDescription: "有効にすると、各種タイムラインを取得する際のパフォーマンスが大幅に向上し、データベースへの負荷を軽減することが可能です。ただし、Redisのメモリ使用量は増加します。サーバーのメモリ容量が少ない場合、または動作が不安定な場合は無効にすることができます。"
|
fanoutTimelineDescription: "有効にすると、各種タイムラインを取得する際のパフォーマンスが大幅に向上し、データベースへの負荷を軽減することが可能です。ただし、Redisのメモリ使用量は増加します。サーバーのメモリ容量が少ない場合、または動作が不安定な場合は無効にすることができます。"
|
||||||
|
fanoutTimelineDbFallback: "データベースへのフォールバック"
|
||||||
|
fanoutTimelineDbFallbackDescription: "有効にすると、タイムラインがキャッシュされていない場合にDBへ追加で問い合わせを行うフォールバック処理を行います。無効にすると、フォールバック処理を行わないことでさらにサーバーの負荷を軽減することができますが、タイムラインが取得できる範囲に制限が生じます。"
|
||||||
|
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "別のアカウントからこのアカウントに移行"
|
moveFrom: "別のアカウントからこのアカウントに移行"
|
||||||
|
@ -1864,6 +1866,15 @@ _ago:
|
||||||
yearsAgo: "{n}年前"
|
yearsAgo: "{n}年前"
|
||||||
invalid: "ありません"
|
invalid: "ありません"
|
||||||
|
|
||||||
|
_timeIn:
|
||||||
|
seconds: "{n}秒後"
|
||||||
|
minutes: "{n}分後"
|
||||||
|
hours: "{n}時間後"
|
||||||
|
days: "{n}日後"
|
||||||
|
weeks: "{n}週間後"
|
||||||
|
months: "{n}ヶ月後"
|
||||||
|
years: "{n}年後"
|
||||||
|
|
||||||
_time:
|
_time:
|
||||||
second: "秒"
|
second: "秒"
|
||||||
minute: "分"
|
minute: "分"
|
||||||
|
|
|
@ -979,6 +979,7 @@ assign: "アサイン"
|
||||||
unassign: "アサインを解除"
|
unassign: "アサインを解除"
|
||||||
color: "色"
|
color: "色"
|
||||||
manageCustomEmojis: "カスタム絵文字の管理"
|
manageCustomEmojis: "カスタム絵文字の管理"
|
||||||
|
manageAvatarDecorations: "アバターを飾るモンの管理"
|
||||||
youCannotCreateAnymore: "これ以上作れなさそうやわ"
|
youCannotCreateAnymore: "これ以上作れなさそうやわ"
|
||||||
cannotPerformTemporary: "一時的に利用できへんで"
|
cannotPerformTemporary: "一時的に利用できへんで"
|
||||||
cannotPerformTemporaryDescription: "操作回数が制限を超えたから一時的に利用できへんくなったで。ちょっと時間置いてからもう一回やってやー。"
|
cannotPerformTemporaryDescription: "操作回数が制限を超えたから一時的に利用できへんくなったで。ちょっと時間置いてからもう一回やってやー。"
|
||||||
|
@ -1149,6 +1150,14 @@ detach: ""
|
||||||
angle: ""
|
angle: ""
|
||||||
flip: "反転"
|
flip: "反転"
|
||||||
showAvatarDecorations: ""
|
showAvatarDecorations: ""
|
||||||
|
releaseToRefresh: "離してリロード"
|
||||||
|
refreshing: "リロード中"
|
||||||
|
pullDownToRefresh: "引っ張ってリロードするで"
|
||||||
|
disableStreamingTimeline: "タイムラインのリアルタイム更新をやめるで"
|
||||||
|
useGroupedNotifications: "通知をグルーピングしてだすで"
|
||||||
|
signupPendingError: "メールアドレスの確認中に問題が起こってえらいこっちゃ。リンクの有効期限が切れてるかもやで"
|
||||||
|
cwNotationRequired: "「内容を隠す」がオンの場合は注釈の記述が必要やで。"
|
||||||
|
doReaction: "ツッコミすんで"
|
||||||
_announcement:
|
_announcement:
|
||||||
forExistingUsers: "もうおるユーザーのみ"
|
forExistingUsers: "もうおるユーザーのみ"
|
||||||
forExistingUsersDescription: "有効にすると、このお知らせ作成時点でおるユーザーにのみお知らせが表示されます。無効にすると、このお知らせ作成後にアカウントを作成したユーザーにもお知らせが表示されます。"
|
forExistingUsersDescription: "有効にすると、このお知らせ作成時点でおるユーザーにのみお知らせが表示されます。無効にすると、このお知らせ作成後にアカウントを作成したユーザーにもお知らせが表示されます。"
|
||||||
|
@ -1158,6 +1167,10 @@ _announcement:
|
||||||
tooManyActiveAnnouncementDescription: "アクティブなお知らせが多いため、UXが低下する可能性があります。終了したお知らせはアーカイブすることを検討した方がええよ。"
|
tooManyActiveAnnouncementDescription: "アクティブなお知らせが多いため、UXが低下する可能性があります。終了したお知らせはアーカイブすることを検討した方がええよ。"
|
||||||
readConfirmTitle: "既読にしてええんやな?"
|
readConfirmTitle: "既読にしてええんやな?"
|
||||||
readConfirmText: "「{title}」の内容を読み、既読にします。"
|
readConfirmText: "「{title}」の内容を読み、既読にします。"
|
||||||
|
shouldNotBeUsedToPresentPermanentInfo: "新規ユーザーのUXを損ねやすいから、お知らせはストック情報やのうてフロー情報の掲示に使った方がええで。"
|
||||||
|
dialogAnnouncementUxWarn: "ダイアログ形式のお知らせが同時に2つ以上ある場合、UXに悪影響を及ぼす可能性が高くなるから、使用は慎重にすんのがおすすめやで。"
|
||||||
|
silence: "通知せんで"
|
||||||
|
silenceDescription: "オンにすると、このお知らせは通知されないで、既読にする必要もなくなるで。"
|
||||||
_initialAccountSetting:
|
_initialAccountSetting:
|
||||||
accountCreated: "アカウント作り終わったで。"
|
accountCreated: "アカウント作り終わったで。"
|
||||||
letsStartAccountSetup: "アカウントの初期設定をしよか。"
|
letsStartAccountSetup: "アカウントの初期設定をしよか。"
|
||||||
|
@ -1170,8 +1183,24 @@ _initialAccountSetting:
|
||||||
pushNotificationDescription: "プッシュ通知を有効にすると{name}の通知をあんたのデバイスで受け取れるで。"
|
pushNotificationDescription: "プッシュ通知を有効にすると{name}の通知をあんたのデバイスで受け取れるで。"
|
||||||
initialAccountSettingCompleted: "初期設定が終わったで。"
|
initialAccountSettingCompleted: "初期設定が終わったで。"
|
||||||
haveFun: "{name}、楽しんでな~"
|
haveFun: "{name}、楽しんでな~"
|
||||||
|
youCanContinueTutorial: "このまま{name}(Misskey)の使い方のチュートリアルに進めるけど、ここで中断してすぐに使い始めることもできるで。"
|
||||||
|
startTutorial: "チュートリアルを開始するで"
|
||||||
skipAreYouSure: "初期設定飛ばすか?"
|
skipAreYouSure: "初期設定飛ばすか?"
|
||||||
laterAreYouSure: "初期設定あとでやり直すん?"
|
laterAreYouSure: "初期設定あとでやり直すん?"
|
||||||
|
_initialTutorial:
|
||||||
|
launchTutorial: "チュートリアルを見るで"
|
||||||
|
title: "チュートリアルやで"
|
||||||
|
wellDone: "やるやん"
|
||||||
|
skipAreYouSure: "チュートリアルをやめるか?"
|
||||||
|
_landing:
|
||||||
|
title: "チュートリアルによう来たな"
|
||||||
|
description: "ここでは、Misskeyの基本的な使い方や機能を確認できるで。"
|
||||||
|
_note:
|
||||||
|
title: "ノートってなんや?"
|
||||||
|
description: "Misskeyでの投稿は「ノート」って呼ばれてるで。ノートはタイムラインに時系列で並んでいて、リアルタイムで更新されてるで。"
|
||||||
|
reply: "返信することもできるで。返信に対しての返信も可能で、スレッドのように会話を続けることもできるで。"
|
||||||
|
renote: "そのノートを自分のタイムラインに流して共有することもできるで。テキストを追加して引用することもできるで。"
|
||||||
|
reaction: "ツッコミをつけることもできるで。細かいことは次のページで解説するで。"
|
||||||
_serverRules:
|
_serverRules:
|
||||||
description: "新規登録前に見せる、サーバーの簡潔なルールを設定すんで。内容は使うための決め事の要約とすることを推奨するわ。"
|
description: "新規登録前に見せる、サーバーの簡潔なルールを設定すんで。内容は使うための決め事の要約とすることを推奨するわ。"
|
||||||
_serverSettings:
|
_serverSettings:
|
||||||
|
@ -1484,6 +1513,7 @@ _role:
|
||||||
inviteLimitCycle: "招待コードの発行間隔"
|
inviteLimitCycle: "招待コードの発行間隔"
|
||||||
inviteExpirationTime: "招待コードの有効期限"
|
inviteExpirationTime: "招待コードの有効期限"
|
||||||
canManageCustomEmojis: "カスタム絵文字の管理"
|
canManageCustomEmojis: "カスタム絵文字の管理"
|
||||||
|
canManageAvatarDecorations: "アバターを飾るモンの管理"
|
||||||
driveCapacity: "ドライブ容量"
|
driveCapacity: "ドライブ容量"
|
||||||
alwaysMarkNsfw: "勝手にファイルにNSFWをくっつける"
|
alwaysMarkNsfw: "勝手にファイルにNSFWをくっつける"
|
||||||
pinMax: "ノートのピン留めの最大数"
|
pinMax: "ノートのピン留めの最大数"
|
||||||
|
|
|
@ -113,7 +113,7 @@ cantReRenote: "리노트를 리노트할 수 없습니다."
|
||||||
quote: "인용"
|
quote: "인용"
|
||||||
inChannelRenote: "채널 내 리노트"
|
inChannelRenote: "채널 내 리노트"
|
||||||
inChannelQuote: "채널 내 인용"
|
inChannelQuote: "채널 내 인용"
|
||||||
pinnedNote: "고정해놓은 노트"
|
pinnedNote: "고정된 노트"
|
||||||
pinned: "프로필에 고정"
|
pinned: "프로필에 고정"
|
||||||
you: "당신"
|
you: "당신"
|
||||||
clickToShow: "클릭하여 보기"
|
clickToShow: "클릭하여 보기"
|
||||||
|
@ -195,6 +195,7 @@ perHour: "1시간마다"
|
||||||
perDay: "1일마다"
|
perDay: "1일마다"
|
||||||
stopActivityDelivery: "액티비티 보내지 않기"
|
stopActivityDelivery: "액티비티 보내지 않기"
|
||||||
blockThisInstance: "이 서버를 차단"
|
blockThisInstance: "이 서버를 차단"
|
||||||
|
silenceThisInstance: "서버를 사일런스"
|
||||||
operations: "작업"
|
operations: "작업"
|
||||||
software: "소프트웨어"
|
software: "소프트웨어"
|
||||||
version: "버전"
|
version: "버전"
|
||||||
|
@ -214,6 +215,8 @@ clearCachedFiles: "캐시 비우기"
|
||||||
clearCachedFilesConfirm: "캐시된 리모트 파일을 모두 삭제하시겠습니까?"
|
clearCachedFilesConfirm: "캐시된 리모트 파일을 모두 삭제하시겠습니까?"
|
||||||
blockedInstances: "차단된 서버"
|
blockedInstances: "차단된 서버"
|
||||||
blockedInstancesDescription: "차단하려는 서버의 호스트 이름을 줄바꿈으로 구분하여 설정합니다. 차단된 인스턴스는 이 인스턴스와 통신할 수 없게 됩니다."
|
blockedInstancesDescription: "차단하려는 서버의 호스트 이름을 줄바꿈으로 구분하여 설정합니다. 차단된 인스턴스는 이 인스턴스와 통신할 수 없게 됩니다."
|
||||||
|
silencedInstances: "사일런스한 서버"
|
||||||
|
silencedInstancesDescription: "사일런스하려는 서버의 호스트명을 한 줄에 하나씩 입력합니다. 사일런스된 서버에 소속된 유저는 모두 '사일런스'된 상태로 취급되며, 이 서버로부터의 팔로우가 프로필 설정과 무관하게 승인제로 변경되고, 팔로워가 아닌 로컬 유저에게는 멘션할 수 없게 됩니다. 정지된 서버에는 적용되지 않습니다."
|
||||||
muteAndBlock: "뮤트 및 차단"
|
muteAndBlock: "뮤트 및 차단"
|
||||||
mutedUsers: "뮤트한 유저"
|
mutedUsers: "뮤트한 유저"
|
||||||
blockedUsers: "차단한 유저"
|
blockedUsers: "차단한 유저"
|
||||||
|
@ -364,7 +367,7 @@ pinnedUsersDescription: "\"발견하기\" 페이지 등에 고정하고 싶은
|
||||||
pinnedPages: "고정한 페이지"
|
pinnedPages: "고정한 페이지"
|
||||||
pinnedPagesDescription: "서버의 대문에 고정하고 싶은 페이지의 경로를 한 줄에 하나씩 적습니다."
|
pinnedPagesDescription: "서버의 대문에 고정하고 싶은 페이지의 경로를 한 줄에 하나씩 적습니다."
|
||||||
pinnedClipId: "고정할 클립의 ID"
|
pinnedClipId: "고정할 클립의 ID"
|
||||||
pinnedNotes: "고정해놓은 노트"
|
pinnedNotes: "고정된 노트"
|
||||||
hcaptcha: "hCaptcha"
|
hcaptcha: "hCaptcha"
|
||||||
enableHcaptcha: "hCaptcha 활성화"
|
enableHcaptcha: "hCaptcha 활성화"
|
||||||
hcaptchaSiteKey: "사이트 키"
|
hcaptchaSiteKey: "사이트 키"
|
||||||
|
@ -976,6 +979,7 @@ assign: "할당"
|
||||||
unassign: "할당 취소"
|
unassign: "할당 취소"
|
||||||
color: "색"
|
color: "색"
|
||||||
manageCustomEmojis: "커스텀 이모지 관리"
|
manageCustomEmojis: "커스텀 이모지 관리"
|
||||||
|
manageAvatarDecorations: "아바타 꾸미기 관리"
|
||||||
youCannotCreateAnymore: "더 이상 생성할 수 없습니다."
|
youCannotCreateAnymore: "더 이상 생성할 수 없습니다."
|
||||||
cannotPerformTemporary: "일시적으로 사용할 수 없음"
|
cannotPerformTemporary: "일시적으로 사용할 수 없음"
|
||||||
cannotPerformTemporaryDescription: "조작 횟수 제한을 초과하여 일시적으로 사용이 불가합니다. 잠시 후 다시 시도해 주세요."
|
cannotPerformTemporaryDescription: "조작 횟수 제한을 초과하여 일시적으로 사용이 불가합니다. 잠시 후 다시 시도해 주세요."
|
||||||
|
@ -1114,16 +1118,19 @@ replies: "답글"
|
||||||
renotes: "리노트"
|
renotes: "리노트"
|
||||||
loadReplies: "답글 보기"
|
loadReplies: "답글 보기"
|
||||||
loadConversation: "대화 보기"
|
loadConversation: "대화 보기"
|
||||||
pinnedList: "고정해놓은 리스트"
|
pinnedList: "고정된 리스트"
|
||||||
keepScreenOn: "기기 화면을 항상 켜기"
|
keepScreenOn: "기기 화면을 항상 켜기"
|
||||||
verifiedLink: "이 링크의 소유자임이 확인되었습니다."
|
verifiedLink: "이 링크의 소유자임이 확인되었습니다."
|
||||||
notifyNotes: "새 노트 알림 켜기"
|
notifyNotes: "새 노트 알림 켜기"
|
||||||
unnotifyNotes: "새 노트 알림 끄기"
|
unnotifyNotes: "새 노트 알림 끄기"
|
||||||
authentication: "인증"
|
authentication: "인증"
|
||||||
|
authenticationRequiredToContinue: "계속하려면 인증하십시오"
|
||||||
|
dateAndTime: "일시"
|
||||||
showRenotes: "리노트 표시"
|
showRenotes: "리노트 표시"
|
||||||
edited: "수정됨"
|
edited: "수정됨"
|
||||||
notificationRecieveConfig: "알림 설정"
|
notificationRecieveConfig: "알림 설정"
|
||||||
mutualFollow: "맞팔로우"
|
mutualFollow: "맞팔로우"
|
||||||
|
fileAttachedOnly: "미디어를 포함한 노트만"
|
||||||
showRepliesToOthersInTimeline: "타임라인에 다른 사람에게 보내는 답글을 포함"
|
showRepliesToOthersInTimeline: "타임라인에 다른 사람에게 보내는 답글을 포함"
|
||||||
hideRepliesToOthersInTimeline: "타임라인에 다른 사람에게 보내는 답글을 포함하지 않음"
|
hideRepliesToOthersInTimeline: "타임라인에 다른 사람에게 보내는 답글을 포함하지 않음"
|
||||||
showRepliesToOthersInTimelineAll: "타임라인에 현재 팔로우 중인 사람 전원의 답글을 포함하게 하기"
|
showRepliesToOthersInTimelineAll: "타임라인에 현재 팔로우 중인 사람 전원의 답글을 포함하게 하기"
|
||||||
|
@ -1134,16 +1141,23 @@ externalServices: "외부 서비스"
|
||||||
impressum: "운영자 정보"
|
impressum: "운영자 정보"
|
||||||
impressumUrl: "운영자 정보 URL"
|
impressumUrl: "운영자 정보 URL"
|
||||||
impressumDescription: "독일 등의 일부 나라와 지역에서는 꼭 표시해야 합니다(Impressum)."
|
impressumDescription: "독일 등의 일부 나라와 지역에서는 꼭 표시해야 합니다(Impressum)."
|
||||||
|
privacyPolicy: "개인정보 보호 정책"
|
||||||
|
privacyPolicyUrl: "개인정보 보호 정책 URL"
|
||||||
|
tosAndPrivacyPolicy: "약관 및 개인정보 보호 정책"
|
||||||
avatarDecorations: "아이콘 장식"
|
avatarDecorations: "아이콘 장식"
|
||||||
attach: "붙이기"
|
attach: "붙이기"
|
||||||
detach: "떼기"
|
detach: "떼기"
|
||||||
angle: "각도"
|
angle: "각도"
|
||||||
flip: "플립"
|
flip: "플립"
|
||||||
showAvatarDecorations: "아이콘 장식을 표시"
|
showAvatarDecorations: "아이콘 장식을 표시"
|
||||||
|
releaseToRefresh: "놓아서 새로고침"
|
||||||
|
refreshing: "새로고침 중"
|
||||||
|
pullDownToRefresh: "아래로 내려서 새로고침"
|
||||||
disableStreamingTimeline: "타임라인의 실시간 갱신을 무효화하기"
|
disableStreamingTimeline: "타임라인의 실시간 갱신을 무효화하기"
|
||||||
useGroupedNotifications: "알림을 그룹화하고 표시"
|
useGroupedNotifications: "알림을 그룹화하고 표시"
|
||||||
signupPendingError: "메일 주소 확인중에 문제가 발생했습니다. 링크의 유효기간이 지났을 가능성이 있습니다."
|
signupPendingError: "메일 주소 확인중에 문제가 발생했습니다. 링크의 유효기간이 지났을 가능성이 있습니다."
|
||||||
cwNotationRequired: "'내용을 숨기기'를 체크했을 경우 주석을 써야 합니다."
|
cwNotationRequired: "'내용을 숨기기'를 체크한 경우 주석을 써야 합니다."
|
||||||
|
doReaction: "리액션 추가"
|
||||||
_announcement:
|
_announcement:
|
||||||
forExistingUsers: "기존 유저에게만 알림"
|
forExistingUsers: "기존 유저에게만 알림"
|
||||||
forExistingUsersDescription: "활성화하면 이 공지사항을 게시한 시점에서 이미 가입한 유저에게만 표시합니다. 비활성화하면 게시 후에 가입한 유저에게도 표시합니다."
|
forExistingUsersDescription: "활성화하면 이 공지사항을 게시한 시점에서 이미 가입한 유저에게만 표시합니다. 비활성화하면 게시 후에 가입한 유저에게도 표시합니다."
|
||||||
|
@ -1153,6 +1167,10 @@ _announcement:
|
||||||
tooManyActiveAnnouncementDescription: "공지사항이 너무 많을 경우, 사용자 경험에 영향을 끼칠 가능성이 있습니다. 오래된 공지사항은 아카이브하시는 것을 권장드립니다."
|
tooManyActiveAnnouncementDescription: "공지사항이 너무 많을 경우, 사용자 경험에 영향을 끼칠 가능성이 있습니다. 오래된 공지사항은 아카이브하시는 것을 권장드립니다."
|
||||||
readConfirmTitle: "읽음으로 표시합니까?"
|
readConfirmTitle: "읽음으로 표시합니까?"
|
||||||
readConfirmText: "\"{title}\"을(를) 읽음으로 표시합니다."
|
readConfirmText: "\"{title}\"을(를) 읽음으로 표시합니다."
|
||||||
|
shouldNotBeUsedToPresentPermanentInfo: "신규 유저의 이용 경험에 악영향을 끼칠 수 있으므로, 일시적인 알림 수단으로만 사용하고 고정된 정보에는 사용을 지양하는 것을 추천합니다."
|
||||||
|
dialogAnnouncementUxWarn: "다이얼로그 형태의 알림이 동시에 2개 이상 존재하는 경우, 사용자 경험에 악영향을 끼칠 수 있으므로 신중히 결정하십시오."
|
||||||
|
silence: "조용히 알림"
|
||||||
|
silenceDescription: "활성화하면 공지사항에 대한 알림이 가지 않게 되며, 확인 버튼을 누를 필요가 없게 됩니다."
|
||||||
_initialAccountSetting:
|
_initialAccountSetting:
|
||||||
accountCreated: "계정 생성이 완료되었습니다!"
|
accountCreated: "계정 생성이 완료되었습니다!"
|
||||||
letsStartAccountSetup: "계정의 초기 설정을 진행합니다."
|
letsStartAccountSetup: "계정의 초기 설정을 진행합니다."
|
||||||
|
@ -1175,22 +1193,79 @@ _initialTutorial:
|
||||||
wellDone: "잘 하셨습니다"
|
wellDone: "잘 하셨습니다"
|
||||||
skipAreYouSure: "튜토리얼을 종료하시겠습니까?"
|
skipAreYouSure: "튜토리얼을 종료하시겠습니까?"
|
||||||
_landing:
|
_landing:
|
||||||
|
title: "튜토리얼에 오신 걸 환영합니다"
|
||||||
description: "여기서는 미스키의 기본적인 사용법이나 기능을 확인할 수 있습니다."
|
description: "여기서는 미스키의 기본적인 사용법이나 기능을 확인할 수 있습니다."
|
||||||
_note:
|
_note:
|
||||||
|
title: "'노트'가 무엇인가요?"
|
||||||
description: "미스키에서는 게시물을 '노트'라고 합니다. 노트는 타임라인에 시간순으로 정렬되어 있고, 실시간으로 갱신됩니다."
|
description: "미스키에서는 게시물을 '노트'라고 합니다. 노트는 타임라인에 시간순으로 정렬되어 있고, 실시간으로 갱신됩니다."
|
||||||
reply: "답글을 다는 것이 가능합니다. 답글에 답글을 다는 것도 가능하며 스레드처럼 대화를 계속하는 것도 가능합니다."
|
reply: "답글을 다는 것이 가능합니다. 답글에 답글을 다는 것도 가능하며 스레드처럼 대화를 계속하는 것도 가능합니다."
|
||||||
renote: "그 노트를 자기 타임라인에 가져와서 공유하는 것이 가능합니다. 글을 추가해서 인용하는 것도 가능합니다."
|
renote: "그 노트를 자기 타임라인에 가져와서 공유하는 것이 가능합니다. 글을 추가해서 인용하는 것도 가능합니다."
|
||||||
reaction: "리액션을 다는 것이 가능합니다. 다음 페이지에서 자세한 설명을 볼 수 있습니다."
|
reaction: "리액션을 다는 것이 가능합니다. 다음 페이지에서 자세한 설명을 볼 수 있습니다."
|
||||||
|
menu: "노트의 상세 정보를 표시하거나, 링크를 복사하는 등의 다양한 조작을 할 수 있습니다."
|
||||||
|
_reaction:
|
||||||
|
title: "'리액션'이 무엇인가요?"
|
||||||
|
description: "노트에 '리액션'을 보낼 수 있습니다. '좋아요'만으로는 충분히 전해지지 않는 감정을, 이모지에 실어서 가볍게 보낼 수 있습니다."
|
||||||
|
letsTryReacting: "리액션은 노트의 '+' 버튼을 클릭하여 붙일 수 있습니다. 지금 표시되는 샘플 노트에 리액션을 달아 보세요!"
|
||||||
|
reactToContinue: "다음으로 진행하려면 리액션을 보내세요."
|
||||||
|
reactNotification: "누군가가 나의 노트에 리액션을 보내면 실시간으로 알림을 받게 됩니다."
|
||||||
|
reactDone: "'-' 버튼을 눌러서 리액션을 취소할 수 있습니다."
|
||||||
|
_timeline:
|
||||||
|
title: "타임라인에 대하여"
|
||||||
|
description1: "Misskey에는 종류에 따라 여러 가지의 타임라인으로 구성되어 있습니다. (서버에 따라서는 일부 타임라인을 사용할 수 없는 경우가 있습니다)"
|
||||||
|
home: "내가 팔로우 중인 계정의 노트를 볼 수 있습니다."
|
||||||
|
local: "이 서버에 있는 모든 유저의 게시물을 볼 수 있습니다."
|
||||||
|
social: "홈 타임라인과 로컬 타임라인의 게시물을 모두 볼 수 있습니다."
|
||||||
|
global: "연결되어 있는 모든 서버의 게시물을 볼 수 있습니다."
|
||||||
|
description2: "각각의 타임라인은 화면 상단에서 언제든지 변경할 수 있습니다."
|
||||||
|
description3: "이 외에도, '리스트 타임라인'이나 '채널 타임라인' 등이 있습니다. 자세한 사항은 {link}에서 확인하실 수 있습니다."
|
||||||
|
_postNote:
|
||||||
|
title: "노트 게시 설정"
|
||||||
|
description1: "Misskey에 노트를 쓸 때에는 다양한 옵션을 설정할 수 있습니다. 노트를 작성하는 화면은 이렇게 생겼습니다."
|
||||||
|
_visibility:
|
||||||
|
description: "노트를 볼 수 있는 사람을 제한할 수 있습니다."
|
||||||
|
public: "모든 유저에게 공개합니다."
|
||||||
|
home: "홈 타임라인에만 공개합니다. 팔로워, 프로필 화면, 리노트를 통해서 다른 유저가 볼 수 있습니다."
|
||||||
|
followers: "팔로워에게만 공개. 자기 자신을 제외하고는 리노트가 불가능하며, 팔로워 외에는 열람할 수 없습니다."
|
||||||
|
direct: "지정한 유저에게만 공개되며, 상대방에게 알림이 갑니다. 다이렉트 메시지(DM) 대용으로써 사용하실 수 있습니다."
|
||||||
|
doNotSendConfidencialOnDirect1: "민감한 정보를 보낼 때에는 주의하십시오."
|
||||||
|
doNotSendConfidencialOnDirect2: "서버 관리자는 기술적으로 게시물 내용을 열람할 수 있습니다. 신뢰할 수 없는 서버의 유저에게 다이렉트 메시지를 보내는 경우, 민감한 정보가 포함되어 있는 지 확인하십시오."
|
||||||
|
localOnly: "다른 서버에 게시물을 보내지 않습니다. 앞서 설정한 공개 범위와 상관 없이, 다른 서버의 유저는 이 게시물을 직접 열람할 수 없게 됩니다."
|
||||||
|
_cw:
|
||||||
|
title: "내용 가리기 (CW)"
|
||||||
|
description: "본문 대신에 '내용에 대한 주석'에 입력한 텍스트가 먼저 표시됩니다. '더 보기' 버튼을 누르면 본문이 표시됩니다."
|
||||||
|
_exampleNote:
|
||||||
|
cw: "배고픈 사람 주의"
|
||||||
|
note: "방금 초코도넛을 먹었어요 🍩😋"
|
||||||
|
useCases: "서버의 가이드라인에 따라 특정 주제를 다룰 때에 사용하거나, 스포일러 및 민감한 화제를 다룰 때에 자율적으로 사용하기도 합니다."
|
||||||
|
_howToMakeAttachmentsSensitive:
|
||||||
|
title: "첨부 파일을 열람주의로 설정하려면?"
|
||||||
|
description: "서버의 가이드라인에 따라 필요한 이미지, 또는 그대로 노출되기에 부적절한 미디어는 '열람 주의'를 설정해 주세요."
|
||||||
|
tryThisFile: "이 작성 창에 첨부된 이미지를 열람 주의로 설정해 보세요!"
|
||||||
|
_exampleNote:
|
||||||
|
note: "낫또 뚜껑 뜯다가 실수했다…"
|
||||||
|
method: "첨부 파일을 열람 주의로 설정하려면, 해당 파일을 클릭하여 메뉴를 열고, '열람주의로 설정'을 클릭합니다."
|
||||||
|
sensitiveSucceeded: "파일을 첨부할 때에는 서버의 가이드라인에 따라 적절히 열람주의를 설정해 주시기 바랍니다."
|
||||||
|
doItToContinue: "이미지를 열람 주의로 설정하면 다음으로 넘어갈 수 있게 됩니다."
|
||||||
|
_done:
|
||||||
|
title: "튜토리얼이 끝났습니다! 🎉"
|
||||||
|
description: "여기에서 소개한 기능은 극히 일부에 지나지 않습니다. Misskey의 사용 방법을 더 자세히 알아보려면 {link}를 확인해 주세요!"
|
||||||
|
_timelineDescription:
|
||||||
|
home: "홈 타임라인에서는, 내가 팔로우한 계정의 게시물을 볼 수 있습니다."
|
||||||
|
local: "로컬 타임라인에서는, 이 서버의 모든 유저의 게시물을 볼 수 있습니다."
|
||||||
|
social: "소셜 타임라인에서는, 홈 타임라인과 로컬 타임라인의 게시물을 모두 볼 수 있습니다."
|
||||||
|
global: "글로벌 타임라인에서는, 여기와 연결된 다른 모든 서버의 게시물을 볼 수 있습니다."
|
||||||
_serverRules:
|
_serverRules:
|
||||||
description: "회원 가입 이전에 간단하게 표시할 서버 규칙입니다. 이용 약관의 요약으로 구성하는 것을 추천합니다."
|
description: "회원 가입 이전에 간단하게 표시할 서버 규칙입니다. 이용 약관의 요약으로 구성하는 것을 추천합니다."
|
||||||
_serverSettings:
|
_serverSettings:
|
||||||
iconUrl: "아이콘 URL"
|
iconUrl: "아이콘 URL"
|
||||||
|
appIconDescription: "{host}이 앱으로 표시될 때의 아이콘을 지정합니다."
|
||||||
appIconUsageExample: "예를 들어, PWA나 스마트폰 홈 화면에 북마크로 추가되었을 때 등"
|
appIconUsageExample: "예를 들어, PWA나 스마트폰 홈 화면에 북마크로 추가되었을 때 등"
|
||||||
appIconStyleRecommendation: "아이콘이 원형 또는 둥근 사각형으로 잘리는 경우가 있으므로, 가장자리 여백이 충분한 사진을 사용하는 것을 추천합니다."
|
appIconStyleRecommendation: "아이콘이 원형 또는 둥근 사각형으로 잘리는 경우가 있으므로, 가장자리 여백이 충분한 사진을 사용하는 것을 추천합니다."
|
||||||
appIconResolutionMustBe: "해상도는 반드시 {resolution} 이어야 합니다."
|
appIconResolutionMustBe: "해상도는 반드시 {resolution} 이어야 합니다."
|
||||||
manifestJsonOverride: "manifest.json 오버라이드"
|
manifestJsonOverride: "manifest.json 오버라이드"
|
||||||
shortName: "약칭"
|
shortName: "약칭"
|
||||||
shortNameDescription: "서버의 정식 명칭이 긴 경우에, 대신에 표시할 수 있는 약칭이나 통칭."
|
shortNameDescription: "서버의 정식 명칭이 긴 경우에, 대신에 표시할 수 있는 약칭이나 통칭."
|
||||||
|
fanoutTimelineDescription: "활성화하면 각종 타임라인을 가져올 때의 성능을 대폭 향상하며, 데이터베이스의 부하를 줄일 수 있습니다. 단, Redis의 메모리 사용량이 증가합니다. 서버의 메모리 용량이 작거나, 서비스가 불안정해지는 경우 비활성화할 수 있습니다."
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "다른 계정에서 이 계정으로 이사"
|
moveFrom: "다른 계정에서 이 계정으로 이사"
|
||||||
moveFromSub: "다른 계정에 대한 별칭을 생성"
|
moveFromSub: "다른 계정에 대한 별칭을 생성"
|
||||||
|
@ -1445,6 +1520,12 @@ _achievements:
|
||||||
title: "Brain Diver"
|
title: "Brain Diver"
|
||||||
description: "Brain Diver로의 링크를 첨부했습니다"
|
description: "Brain Diver로의 링크를 첨부했습니다"
|
||||||
flavor: "Misskey-Misskey La-Tu-Ma"
|
flavor: "Misskey-Misskey La-Tu-Ma"
|
||||||
|
_smashTestNotificationButton:
|
||||||
|
title: "테스트 과잉"
|
||||||
|
description: "매우 짧은 시간 안에 알림 테스트를 여러 번 수행했습니다"
|
||||||
|
_tutorialCompleted:
|
||||||
|
title: "Misskey 입문자 과정 수료증"
|
||||||
|
description: "튜토리얼을 완료했습니다"
|
||||||
_role:
|
_role:
|
||||||
new: "새 역할 생성"
|
new: "새 역할 생성"
|
||||||
edit: "역할 수정"
|
edit: "역할 수정"
|
||||||
|
@ -1488,6 +1569,7 @@ _role:
|
||||||
inviteLimitCycle: "초대 발급 간격"
|
inviteLimitCycle: "초대 발급 간격"
|
||||||
inviteExpirationTime: "초대 만료 기간"
|
inviteExpirationTime: "초대 만료 기간"
|
||||||
canManageCustomEmojis: "커스텀 이모지 관리"
|
canManageCustomEmojis: "커스텀 이모지 관리"
|
||||||
|
canManageAvatarDecorations: "아바타 꾸미기 관리"
|
||||||
driveCapacity: "드라이브 용량"
|
driveCapacity: "드라이브 용량"
|
||||||
alwaysMarkNsfw: "파일을 항상 NSFW로 지정"
|
alwaysMarkNsfw: "파일을 항상 NSFW로 지정"
|
||||||
pinMax: "고정할 수 있는 노트 수"
|
pinMax: "고정할 수 있는 노트 수"
|
||||||
|
@ -1502,6 +1584,7 @@ _role:
|
||||||
descriptionOfRateLimitFactor: "작을수록 제한이 완화되고, 클수록 제한이 강화됩니다."
|
descriptionOfRateLimitFactor: "작을수록 제한이 완화되고, 클수록 제한이 강화됩니다."
|
||||||
canHideAds: "광고 숨기기"
|
canHideAds: "광고 숨기기"
|
||||||
canSearchNotes: "노트 검색 이용 가능 여부"
|
canSearchNotes: "노트 검색 이용 가능 여부"
|
||||||
|
canUseTranslator: "번역 기능의 사용"
|
||||||
_condition:
|
_condition:
|
||||||
isLocal: "로컬 사용자"
|
isLocal: "로컬 사용자"
|
||||||
isRemote: "리모트 사용자"
|
isRemote: "리모트 사용자"
|
||||||
|
@ -1550,6 +1633,10 @@ _ad:
|
||||||
reduceFrequencyOfThisAd: "이 광고의 표시 빈도 낮추기"
|
reduceFrequencyOfThisAd: "이 광고의 표시 빈도 낮추기"
|
||||||
hide: "보이지 않음"
|
hide: "보이지 않음"
|
||||||
timezoneinfo: "요일은 서버의 표준 시간대에 따라 결정됩니다."
|
timezoneinfo: "요일은 서버의 표준 시간대에 따라 결정됩니다."
|
||||||
|
adsSettings: "광고 표시 설정"
|
||||||
|
notesPerOneAd: "실시간으로 갱신되는 타임라인에서 광고를 노출시키는 간격 (노트 당)"
|
||||||
|
setZeroToDisable: "0으로 지정하면 실시간 타임라인에서의 광고를 비활성화합니다"
|
||||||
|
adsTooClose: "광고의 표시 간격이 매우 작아, 사용자 경험에 부정적인 영향을 미칠 수 있습니다."
|
||||||
_forgotPassword:
|
_forgotPassword:
|
||||||
enterEmail: "여기에 계정에 등록한 메일 주소를 입력해 주세요. 입력한 메일 주소로 비밀번호 재설정 링크를 발송합니다."
|
enterEmail: "여기에 계정에 등록한 메일 주소를 입력해 주세요. 입력한 메일 주소로 비밀번호 재설정 링크를 발송합니다."
|
||||||
ifNoEmail: "메일 주소를 등록하지 않은 경우, 관리자에 문의해 주십시오."
|
ifNoEmail: "메일 주소를 등록하지 않은 경우, 관리자에 문의해 주십시오."
|
||||||
|
@ -1602,6 +1689,7 @@ _aboutMisskey:
|
||||||
donate: "Misskey에 기부하기"
|
donate: "Misskey에 기부하기"
|
||||||
morePatrons: "이 외에도 다른 많은 분들이 도움을 주시고 계십니다. 감사합니다🥰"
|
morePatrons: "이 외에도 다른 많은 분들이 도움을 주시고 계십니다. 감사합니다🥰"
|
||||||
patrons: "후원자"
|
patrons: "후원자"
|
||||||
|
projectMembers: "프로젝트 구성원"
|
||||||
_displayOfSensitiveMedia:
|
_displayOfSensitiveMedia:
|
||||||
respect: "민감한 콘텐츠로 표시된 미디어 숨기기"
|
respect: "민감한 콘텐츠로 표시된 미디어 숨기기"
|
||||||
ignore: "민감한 콘텐츠로 표시된 미디어 보이기"
|
ignore: "민감한 콘텐츠로 표시된 미디어 보이기"
|
||||||
|
@ -1626,6 +1714,7 @@ _channel:
|
||||||
notesCount: "{n}노트"
|
notesCount: "{n}노트"
|
||||||
nameAndDescription: "이름과 설명"
|
nameAndDescription: "이름과 설명"
|
||||||
nameOnly: "이름만"
|
nameOnly: "이름만"
|
||||||
|
allowRenoteToExternal: "채널 외부로의 리노트와 인용 리노트를 허가"
|
||||||
_menuDisplay:
|
_menuDisplay:
|
||||||
sideFull: "가로"
|
sideFull: "가로"
|
||||||
sideIcon: "가로(아이콘)"
|
sideIcon: "가로(아이콘)"
|
||||||
|
@ -1812,8 +1901,9 @@ _auth:
|
||||||
_antennaSources:
|
_antennaSources:
|
||||||
all: "모든 노트"
|
all: "모든 노트"
|
||||||
homeTimeline: "팔로우중인 유저의 노트"
|
homeTimeline: "팔로우중인 유저의 노트"
|
||||||
users: "지정한 한 명 혹은 여러 명의 유저의 노트"
|
users: "지정한 유저의 노트"
|
||||||
userList: "지정한 리스트에 속한 유저의 노트"
|
userList: "지정한 리스트에 속한 유저의 노트"
|
||||||
|
userBlacklist: "지정한 유저를 제외한 모든 노트"
|
||||||
_weekday:
|
_weekday:
|
||||||
sunday: "일요일"
|
sunday: "일요일"
|
||||||
monday: "월요일"
|
monday: "월요일"
|
||||||
|
@ -1913,6 +2003,7 @@ _profile:
|
||||||
metadataContent: "내용"
|
metadataContent: "내용"
|
||||||
changeAvatar: "아바타 이미지 변경"
|
changeAvatar: "아바타 이미지 변경"
|
||||||
changeBanner: "배너 이미지 변경"
|
changeBanner: "배너 이미지 변경"
|
||||||
|
verifiedLinkDescription: "내용에 자신의 프로필로 향하는 링크가 포함된 페이지의 URL을 삽입하면 소유자 인증 마크가 표시됩니다."
|
||||||
_exportOrImport:
|
_exportOrImport:
|
||||||
allNotes: "모든 노트"
|
allNotes: "모든 노트"
|
||||||
favoritedNotes: "즐겨찾기한 노트"
|
favoritedNotes: "즐겨찾기한 노트"
|
||||||
|
@ -1922,6 +2013,7 @@ _exportOrImport:
|
||||||
userLists: "리스트"
|
userLists: "리스트"
|
||||||
excludeMutingUsers: "뮤트한 유저 제외하기"
|
excludeMutingUsers: "뮤트한 유저 제외하기"
|
||||||
excludeInactiveUsers: "휴면 중인 계정 제외하기"
|
excludeInactiveUsers: "휴면 중인 계정 제외하기"
|
||||||
|
withReplies: "가져오기한 유저에 의한 답글을 타임라인에 포함"
|
||||||
_charts:
|
_charts:
|
||||||
federation: "연합"
|
federation: "연합"
|
||||||
apRequest: "요청"
|
apRequest: "요청"
|
||||||
|
@ -1995,7 +2087,7 @@ _pages:
|
||||||
url: "페이지 URL"
|
url: "페이지 URL"
|
||||||
summary: "페이지 요약"
|
summary: "페이지 요약"
|
||||||
alignCenter: "가운데 정렬"
|
alignCenter: "가운데 정렬"
|
||||||
hideTitleWhenPinned: "프로필에 고정해놓은 경우 타이틀을 표시하지 않음"
|
hideTitleWhenPinned: "프로필에 고정한 경우 타이틀을 표시하지 않음"
|
||||||
font: "폰트"
|
font: "폰트"
|
||||||
fontSerif: "명조체"
|
fontSerif: "명조체"
|
||||||
fontSansSerif: "고딕체"
|
fontSansSerif: "고딕체"
|
||||||
|
@ -2031,6 +2123,7 @@ _notification:
|
||||||
youReceivedFollowRequest: "새로운 팔로우 요청이 있습니다"
|
youReceivedFollowRequest: "새로운 팔로우 요청이 있습니다"
|
||||||
yourFollowRequestAccepted: "팔로우 요청이 수락되었습니다"
|
yourFollowRequestAccepted: "팔로우 요청이 수락되었습니다"
|
||||||
pollEnded: "투표 결과가 발표되었습니다"
|
pollEnded: "투표 결과가 발표되었습니다"
|
||||||
|
newNote: "새 게시물"
|
||||||
unreadAntennaNote: "안테나 {name}"
|
unreadAntennaNote: "안테나 {name}"
|
||||||
emptyPushNotificationMessage: "푸시 알림이 갱신되었습니다"
|
emptyPushNotificationMessage: "푸시 알림이 갱신되었습니다"
|
||||||
achievementEarned: "도전 과제를 달성했습니다"
|
achievementEarned: "도전 과제를 달성했습니다"
|
||||||
|
@ -2043,6 +2136,7 @@ _notification:
|
||||||
followedBySomeUsers: "{n}명에게 팔로우됨"
|
followedBySomeUsers: "{n}명에게 팔로우됨"
|
||||||
_types:
|
_types:
|
||||||
all: "전부"
|
all: "전부"
|
||||||
|
note: "유저의 새 게시물"
|
||||||
follow: "팔로잉"
|
follow: "팔로잉"
|
||||||
mention: "멘션"
|
mention: "멘션"
|
||||||
reply: "답글"
|
reply: "답글"
|
||||||
|
@ -2113,6 +2207,85 @@ _webhookSettings:
|
||||||
reaction: "누군가 내 노트에 리액션했을 때"
|
reaction: "누군가 내 노트에 리액션했을 때"
|
||||||
mention: "누군가 나를 멘션했을 때"
|
mention: "누군가 나를 멘션했을 때"
|
||||||
_moderationLogTypes:
|
_moderationLogTypes:
|
||||||
|
createRole: "역할 생성"
|
||||||
|
deleteRole: "역할 삭제"
|
||||||
|
updateRole: "역할 수정"
|
||||||
|
assignRole: "역할 할당"
|
||||||
|
unassignRole: "역할 해제"
|
||||||
suspend: "정지"
|
suspend: "정지"
|
||||||
|
unsuspend: "정지 해제"
|
||||||
|
addCustomEmoji: "커스텀 이모지 추가"
|
||||||
|
updateCustomEmoji: "커스텀 이모지 수정"
|
||||||
|
deleteCustomEmoji: "커스텀 이모지 삭제"
|
||||||
|
updateServerSettings: "서버 설정 갱신"
|
||||||
|
updateUserNote: "모더레이션 노트 갱신"
|
||||||
|
deleteDriveFile: "파일 삭제"
|
||||||
|
deleteNote: "노트 삭제"
|
||||||
|
createGlobalAnnouncement: "전역 공지사항 생성"
|
||||||
|
createUserAnnouncement: "유저 공지사항 생성"
|
||||||
|
updateGlobalAnnouncement: "전역 공지사항 수정"
|
||||||
|
updateUserAnnouncement: "유저 공지사항 수정"
|
||||||
|
deleteGlobalAnnouncement: "전역 공지사항 삭제"
|
||||||
|
deleteUserAnnouncement: "유저 공지사항 삭제"
|
||||||
resetPassword: "비밀번호 재설정"
|
resetPassword: "비밀번호 재설정"
|
||||||
|
suspendRemoteInstance: "리모트 서버를 정지"
|
||||||
|
unsuspendRemoteInstance: "리모트 서버의 정지를 해제"
|
||||||
|
markSensitiveDriveFile: "파일에 열람주의를 설정"
|
||||||
|
unmarkSensitiveDriveFile: "파일에 열람주의를 해제"
|
||||||
|
resolveAbuseReport: "신고 해결"
|
||||||
createInvitation: "초대 코드 생성"
|
createInvitation: "초대 코드 생성"
|
||||||
|
createAd: "광고 생성"
|
||||||
|
deleteAd: "광고 삭제"
|
||||||
|
updateAd: "광고 수정"
|
||||||
|
createAvatarDecoration: "아이콘 장식 추가"
|
||||||
|
updateAvatarDecoration: "아이콘 장식 수정"
|
||||||
|
deleteAvatarDecoration: "아이콘 장식 삭제"
|
||||||
|
_fileViewer:
|
||||||
|
title: "파일 상세"
|
||||||
|
type: "파일 유형"
|
||||||
|
size: "파일 크기"
|
||||||
|
url: "URL"
|
||||||
|
uploadedAt: "업로드 날짜"
|
||||||
|
attachedNotes: "첨부된 노트"
|
||||||
|
thisPageCanBeSeenFromTheAuthor: "이 페이지는 파일 소유자만 열람할 수 있습니다"
|
||||||
|
_externalResourceInstaller:
|
||||||
|
title: "외부 사이트로부터 설치"
|
||||||
|
checkVendorBeforeInstall: "제공자를 신뢰할 수 있는 경우에만 설치하십시오."
|
||||||
|
_plugin:
|
||||||
|
title: "이 플러그인을 설치하시겠습니까?"
|
||||||
|
metaTitle: "플러그인 정보"
|
||||||
|
_theme:
|
||||||
|
title: "이 테마를 설치하시겠습니까?"
|
||||||
|
metaTitle: "테마 정보"
|
||||||
|
_meta:
|
||||||
|
base: "기본 컬러 스키마"
|
||||||
|
_vendorInfo:
|
||||||
|
title: "제공자 정보"
|
||||||
|
endpoint: "참조한 엔드포인트"
|
||||||
|
hashVerify: "파일 무결성 확인"
|
||||||
|
_errors:
|
||||||
|
_invalidParams:
|
||||||
|
title: "파라미터가 부족합니다"
|
||||||
|
description: "외부 사이트로부터 데이터를 불러오기 위해 필요한 정보가 부족합니다. URL을 다시 한 번 확인하십시오."
|
||||||
|
_resourceTypeNotSupported:
|
||||||
|
title: "해당하는 외부 리소스는 지원되지 않습니다."
|
||||||
|
description: "외부 사이트의 해당 리소스는 지원되지 않습니다. 사이트 관리자에게 문의하십시오."
|
||||||
|
_failedToFetch:
|
||||||
|
title: "데이터를 불러올 수 없습니다"
|
||||||
|
fetchErrorDescription: "외부 사이트와의 통신에 실패하였습니다. 여러 번 시도해도 동일한 오류가 표시되는 경우 사이트 관리자에게 문의하십시오."
|
||||||
|
parseErrorDescription: "외부 사이트에서 불러온 데이터를 읽어들일 수 없습니다. 사이트 관리자에게 문의하십시오."
|
||||||
|
_hashUnmatched:
|
||||||
|
title: "데이터가 올바르지 않습니다."
|
||||||
|
description: "데이터의 무결성 확인에 실패하여, 보안을 위해 설치가 중단되었습니다. 사이트 관리자에게 문의하십시오."
|
||||||
|
_pluginParseFailed:
|
||||||
|
title: "AiScript 오류"
|
||||||
|
description: "데이터를 성공적으로 불러왔으나, AiScript 분석 과정에서 오류가 발생하여 읽어들일 수 없습니다. 플러그인 작성자에게 문의하십시오. 자세한 사항은 브라우저에 내장된 개발자 도구의 Javascript 콘솔에서 확인하실 수 있습니다."
|
||||||
|
_pluginInstallFailed:
|
||||||
|
title: "플러그인 설치에 실패했습니다"
|
||||||
|
description: "플러그인을 설치하는 도중 문제가 발생하였습니다. 다시 한 번 시도하십시오. 자세한 사항은 브라우저에 내장된 개발자 도구의 Javascript 콘솔에서 확인하실 수 있습니다."
|
||||||
|
_themeParseFailed:
|
||||||
|
title: "테마 코드 분석 오류"
|
||||||
|
description: "데이터를 성공적으로 불러왔으나, 테마 코드 분석 과정에서 오류가 발생하여 읽어들일 수 없습니다. 테마 작성자에게 문의하십시오. 자세한 사항은 브라우저에 내장된 개발자 도구의 Javascript 콘솔에서 확인하실 수 있습니다."
|
||||||
|
_themeInstallFailed:
|
||||||
|
title: "테마를 설치하지 못했습니다"
|
||||||
|
description: "테마를 설치하는 도중 문제가 발생하였습니다. 다시 한 번 시도하십시오. 자세한 사항은 브라우저에 내장된 개발자 도구의 Javascript 콘솔에서 확인하실 수 있습니다."
|
||||||
|
|
|
@ -59,7 +59,7 @@ copyFileId: "Скопировать ID файла"
|
||||||
copyFolderId: "Скопировать ID папки"
|
copyFolderId: "Скопировать ID папки"
|
||||||
copyProfileUrl: "Скопировать URL профиля "
|
copyProfileUrl: "Скопировать URL профиля "
|
||||||
searchUser: "Поиск людей"
|
searchUser: "Поиск людей"
|
||||||
reply: "Ответить"
|
reply: "Ответ"
|
||||||
loadMore: "Показать еще"
|
loadMore: "Показать еще"
|
||||||
showMore: "Показать еще"
|
showMore: "Показать еще"
|
||||||
showLess: "Закрыть"
|
showLess: "Закрыть"
|
||||||
|
@ -409,6 +409,7 @@ aboutMisskey: "О Misskey"
|
||||||
administrator: "Администратор"
|
administrator: "Администратор"
|
||||||
token: "Токен"
|
token: "Токен"
|
||||||
2fa: "2-х факторная аутентификация"
|
2fa: "2-х факторная аутентификация"
|
||||||
|
setupOf2fa: "Настроить двухфакторную аутентификацию"
|
||||||
totp: "Приложение-аутентификатор"
|
totp: "Приложение-аутентификатор"
|
||||||
totpDescription: "Описание приложения-аутентификатора"
|
totpDescription: "Описание приложения-аутентификатора"
|
||||||
moderator: "Модератор"
|
moderator: "Модератор"
|
||||||
|
@ -652,6 +653,7 @@ behavior: "Поведение"
|
||||||
sample: "Пример"
|
sample: "Пример"
|
||||||
abuseReports: "Жалобы"
|
abuseReports: "Жалобы"
|
||||||
reportAbuse: "Жалоба"
|
reportAbuse: "Жалоба"
|
||||||
|
reportAbuseRenote: "Пожаловаться на репост"
|
||||||
reportAbuseOf: "Пожаловаться на пользователя {name}"
|
reportAbuseOf: "Пожаловаться на пользователя {name}"
|
||||||
fillAbuseReportDescription: "Опишите, пожалуйста, причину жалобы подробнее. Если речь о конкретной заметке, будьте добры приложить ссылку на неё."
|
fillAbuseReportDescription: "Опишите, пожалуйста, причину жалобы подробнее. Если речь о конкретной заметке, будьте добры приложить ссылку на неё."
|
||||||
abuseReported: "Жалоба отправлена. Большое спасибо за информацию."
|
abuseReported: "Жалоба отправлена. Большое спасибо за информацию."
|
||||||
|
@ -1060,12 +1062,14 @@ goToMisskey: "К Misskey"
|
||||||
additionalEmojiDictionary: "Дополнительные словари эмодзи"
|
additionalEmojiDictionary: "Дополнительные словари эмодзи"
|
||||||
installed: "Установлено"
|
installed: "Установлено"
|
||||||
branding: "Бренд"
|
branding: "Бренд"
|
||||||
|
enableIdenticonGeneration: "Включить генерацию иконки пользователя"
|
||||||
|
turnOffToImprovePerformance: "Отключение этого параметра может повысить производительность."
|
||||||
expirationDate: "Дата истечения"
|
expirationDate: "Дата истечения"
|
||||||
unused: "Неиспользуемый"
|
unused: "Неиспользуемый"
|
||||||
expired: "Срок действия приглашения истёк"
|
expired: "Срок действия приглашения истёк"
|
||||||
doYouAgree: "Согласны?"
|
doYouAgree: "Согласны?"
|
||||||
icon: "Аватар"
|
icon: "Аватар"
|
||||||
replies: "Ответить"
|
replies: "Ответы"
|
||||||
renotes: "Репост"
|
renotes: "Репост"
|
||||||
flip: "Переворот"
|
flip: "Переворот"
|
||||||
_initialAccountSetting:
|
_initialAccountSetting:
|
||||||
|
@ -1075,6 +1079,9 @@ _initialAccountSetting:
|
||||||
privacySetting: "Настройки конфиденциальности"
|
privacySetting: "Настройки конфиденциальности"
|
||||||
initialAccountSettingCompleted: "Первоначальная настройка успешно завершена!"
|
initialAccountSettingCompleted: "Первоначальная настройка успешно завершена!"
|
||||||
skipAreYouSure: "Пропустить настройку?"
|
skipAreYouSure: "Пропустить настройку?"
|
||||||
|
_initialTutorial:
|
||||||
|
_note:
|
||||||
|
description: "Посты в Misskey называются 'Заметками.' Заметки отсортированы в хронологическом порядке в ленте и обновляются в режиме реального времени."
|
||||||
_serverSettings:
|
_serverSettings:
|
||||||
iconUrl: "Адрес на иконку роли"
|
iconUrl: "Адрес на иконку роли"
|
||||||
_achievements:
|
_achievements:
|
||||||
|
@ -1892,7 +1899,7 @@ _notification:
|
||||||
app: "Уведомления из приложений"
|
app: "Уведомления из приложений"
|
||||||
_actions:
|
_actions:
|
||||||
followBack: "отвечает взаимной подпиской"
|
followBack: "отвечает взаимной подпиской"
|
||||||
reply: "Ответить"
|
reply: "Ответ"
|
||||||
renote: "Репост"
|
renote: "Репост"
|
||||||
_deck:
|
_deck:
|
||||||
alwaysShowMainColumn: "Всегда показывать главную колонку"
|
alwaysShowMainColumn: "Всегда показывать главную колонку"
|
||||||
|
|
|
@ -9,6 +9,7 @@ notifications: "Bildirim"
|
||||||
username: "Kullanıcı Adı"
|
username: "Kullanıcı Adı"
|
||||||
password: "Şifre"
|
password: "Şifre"
|
||||||
forgotPassword: "şifremi unuttum"
|
forgotPassword: "şifremi unuttum"
|
||||||
|
fetchingAsApObject: "從聯邦宇宙取得中..."
|
||||||
ok: "TAMAM"
|
ok: "TAMAM"
|
||||||
gotIt: "Anladım"
|
gotIt: "Anladım"
|
||||||
cancel: "İptal"
|
cancel: "İptal"
|
||||||
|
@ -44,6 +45,7 @@ pin: "Sabitlenmiş"
|
||||||
unpin: "Sabitlemeyi kaldır"
|
unpin: "Sabitlemeyi kaldır"
|
||||||
copyContent: "İçeriği kopyala"
|
copyContent: "İçeriği kopyala"
|
||||||
copyLink: "Bağlantıyı Kopyala"
|
copyLink: "Bağlantıyı Kopyala"
|
||||||
|
copyLinkRenote: "Turkish"
|
||||||
delete: "Sil"
|
delete: "Sil"
|
||||||
deleteAndEdit: "Sil ve yeniden düzenle"
|
deleteAndEdit: "Sil ve yeniden düzenle"
|
||||||
deleteAndEditConfirm: "Bu notu silip yeniden düzenlemek istiyor musunuz? Bu nota ilişkin tüm Tepkiler, Yeniden Notlar ve Yanıtlar da silinecektir."
|
deleteAndEditConfirm: "Bu notu silip yeniden düzenlemek istiyor musunuz? Bu nota ilişkin tüm Tepkiler, Yeniden Notlar ve Yanıtlar da silinecektir."
|
||||||
|
@ -155,6 +157,7 @@ addEmoji: "Emoji ekle"
|
||||||
settingGuide: "Önerilen ayarlar"
|
settingGuide: "Önerilen ayarlar"
|
||||||
cacheRemoteFiles: "Uzak dosyalar ön belleğe alınsın"
|
cacheRemoteFiles: "Uzak dosyalar ön belleğe alınsın"
|
||||||
cacheRemoteFilesDescription: "Bu ayar açık olduğunda diğer sitelerin dosyaları doğrudan uzak sunucudan yüklenecektir. Bu ayarı kapatmak depolama kullanımını azaltacak ama küçük resimler oluşturulmadığından trafiği arttıracaktır."
|
cacheRemoteFilesDescription: "Bu ayar açık olduğunda diğer sitelerin dosyaları doğrudan uzak sunucudan yüklenecektir. Bu ayarı kapatmak depolama kullanımını azaltacak ama küçük resimler oluşturulmadığından trafiği arttıracaktır."
|
||||||
|
youCanCleanRemoteFilesCache: ""
|
||||||
cacheRemoteSensitiveFiles: "Hassas uzak dosyalar ön belleğe alınsın"
|
cacheRemoteSensitiveFiles: "Hassas uzak dosyalar ön belleğe alınsın"
|
||||||
cacheRemoteSensitiveFilesDescription: "Bu ayar kapalı olduğunda hassas uzak dosyalar ön belleğe alınmadan doğrudan uzak sunucudan yüklenecektir."
|
cacheRemoteSensitiveFilesDescription: "Bu ayar kapalı olduğunda hassas uzak dosyalar ön belleğe alınmadan doğrudan uzak sunucudan yüklenecektir."
|
||||||
flagAsBot: "Bot olarak işaretle"
|
flagAsBot: "Bot olarak işaretle"
|
||||||
|
@ -192,6 +195,7 @@ perHour: "Saatlik"
|
||||||
perDay: "Günlük"
|
perDay: "Günlük"
|
||||||
stopActivityDelivery: "Durum güncellemelerini gönderme"
|
stopActivityDelivery: "Durum güncellemelerini gönderme"
|
||||||
blockThisInstance: "Bu sunucuyu engelle"
|
blockThisInstance: "Bu sunucuyu engelle"
|
||||||
|
silenceThisInstance: ""
|
||||||
operations: "İşlemler"
|
operations: "İşlemler"
|
||||||
software: "Yazılımlar"
|
software: "Yazılımlar"
|
||||||
version: "Sürüm"
|
version: "Sürüm"
|
||||||
|
@ -211,6 +215,8 @@ clearCachedFiles: "Ön belleği temizle"
|
||||||
clearCachedFilesConfirm: "Ön belleğe alınmış tüm uzak sunucu dosyaları silinsin mi?"
|
clearCachedFilesConfirm: "Ön belleğe alınmış tüm uzak sunucu dosyaları silinsin mi?"
|
||||||
blockedInstances: "Engellenen sunucular"
|
blockedInstances: "Engellenen sunucular"
|
||||||
blockedInstancesDescription: "Engellemek istediğiniz sunucuların alan adlarını satır sonlarıyla ayırarak yazın. Yazılan sunucular bu sunucuyla iletişime geçemeyecek."
|
blockedInstancesDescription: "Engellemek istediğiniz sunucuların alan adlarını satır sonlarıyla ayırarak yazın. Yazılan sunucular bu sunucuyla iletişime geçemeyecek."
|
||||||
|
silencedInstances: "Turkısh"
|
||||||
|
silencedInstancesDescription: ""
|
||||||
muteAndBlock: "Susturma ve Engelleme"
|
muteAndBlock: "Susturma ve Engelleme"
|
||||||
mutedUsers: "Susturulan kullanıcılar"
|
mutedUsers: "Susturulan kullanıcılar"
|
||||||
blockedUsers: "Engellenen kullanıcılar"
|
blockedUsers: "Engellenen kullanıcılar"
|
||||||
|
|
|
@ -299,7 +299,7 @@ light: "淺色"
|
||||||
dark: "深色"
|
dark: "深色"
|
||||||
lightThemes: "淺色主題"
|
lightThemes: "淺色主題"
|
||||||
darkThemes: "深色主題"
|
darkThemes: "深色主題"
|
||||||
syncDeviceDarkMode: "同步至此裝置的深色模式設定"
|
syncDeviceDarkMode: "與設備的深色模式同步"
|
||||||
drive: "雲端硬碟"
|
drive: "雲端硬碟"
|
||||||
fileName: "檔案名稱"
|
fileName: "檔案名稱"
|
||||||
selectFile: "選擇檔案"
|
selectFile: "選擇檔案"
|
||||||
|
@ -584,7 +584,7 @@ relays: "中繼"
|
||||||
addRelay: "新增中繼"
|
addRelay: "新增中繼"
|
||||||
inboxUrl: "收件夾URL"
|
inboxUrl: "收件夾URL"
|
||||||
addedRelays: "已加入的中繼"
|
addedRelays: "已加入的中繼"
|
||||||
serviceworkerInfo: "您需要啟用推送通知。"
|
serviceworkerInfo: "如要使用推播通知,需要啟用此選項並設定金鑰。"
|
||||||
deletedNote: "已刪除的貼文"
|
deletedNote: "已刪除的貼文"
|
||||||
invisibleNote: "私密的貼文"
|
invisibleNote: "私密的貼文"
|
||||||
enableInfiniteScroll: "啟用自動滾動頁面模式"
|
enableInfiniteScroll: "啟用自動滾動頁面模式"
|
||||||
|
@ -731,7 +731,7 @@ thisIsExperimentalFeature: "這是實驗性的功能。可能會有變更規格
|
||||||
developer: "開發者"
|
developer: "開發者"
|
||||||
makeExplorable: "使自己的帳戶能夠在「探索」頁面中顯示"
|
makeExplorable: "使自己的帳戶能夠在「探索」頁面中顯示"
|
||||||
makeExplorableDescription: "如果關閉,帳戶將不會被顯示在「探索」頁面中。"
|
makeExplorableDescription: "如果關閉,帳戶將不會被顯示在「探索」頁面中。"
|
||||||
showGapBetweenNotesInTimeline: "分開顯示時間軸上的貼文。"
|
showGapBetweenNotesInTimeline: "分開顯示時間軸上的貼文"
|
||||||
duplicate: "複製"
|
duplicate: "複製"
|
||||||
left: "左"
|
left: "左"
|
||||||
center: "置中"
|
center: "置中"
|
||||||
|
@ -1030,7 +1030,7 @@ retryAllQueuesConfirmTitle: "要現在重試嗎?"
|
||||||
retryAllQueuesConfirmText: "伺服器的負荷可能會暫時增加。"
|
retryAllQueuesConfirmText: "伺服器的負荷可能會暫時增加。"
|
||||||
enableChartsForRemoteUser: "生成遠端使用者的圖表"
|
enableChartsForRemoteUser: "生成遠端使用者的圖表"
|
||||||
enableChartsForFederatedInstances: "生成遠端伺服器的圖表"
|
enableChartsForFederatedInstances: "生成遠端伺服器的圖表"
|
||||||
showClipButtonInNoteFooter: "新增摘錄至貼文"
|
showClipButtonInNoteFooter: "新增摘錄按鈕至貼文"
|
||||||
reactionsDisplaySize: "反應的顯示尺寸"
|
reactionsDisplaySize: "反應的顯示尺寸"
|
||||||
noteIdOrUrl: "貼文ID或URL"
|
noteIdOrUrl: "貼文ID或URL"
|
||||||
video: "影片"
|
video: "影片"
|
||||||
|
@ -1169,6 +1169,8 @@ _announcement:
|
||||||
readConfirmText: "閱讀「{title}」的內容並標記為已讀。"
|
readConfirmText: "閱讀「{title}」的內容並標記為已讀。"
|
||||||
shouldNotBeUsedToPresentPermanentInfo: "由於可能會破壞使用者體驗,尤其是對於新使用者而言,我們建議使用公告來發布有時效性的資訊而不是固定不變的資訊。"
|
shouldNotBeUsedToPresentPermanentInfo: "由於可能會破壞使用者體驗,尤其是對於新使用者而言,我們建議使用公告來發布有時效性的資訊而不是固定不變的資訊。"
|
||||||
dialogAnnouncementUxWarn: "如果同時有 2 個以上對話方塊形式的公告存在,對於使用者體驗很可能會有不良的影響,因此建議謹慎使用。"
|
dialogAnnouncementUxWarn: "如果同時有 2 個以上對話方塊形式的公告存在,對於使用者體驗很可能會有不良的影響,因此建議謹慎使用。"
|
||||||
|
silence: "不發送通知"
|
||||||
|
silenceDescription: "啟用此選項後,將不會發送此公告的通知,並且無需將其標記為已讀。"
|
||||||
_initialAccountSetting:
|
_initialAccountSetting:
|
||||||
accountCreated: "帳戶已建立完成!"
|
accountCreated: "帳戶已建立完成!"
|
||||||
letsStartAccountSetup: "來進行帳戶的初始設定吧。"
|
letsStartAccountSetup: "來進行帳戶的初始設定吧。"
|
||||||
|
@ -1248,7 +1250,7 @@ _initialTutorial:
|
||||||
title: "教學課程已結束"
|
title: "教學課程已結束"
|
||||||
description: "這裡介紹的功能只是其中的一小部分。要了解更多有關如何使用Misskey的資訊,請瀏覽{link}。"
|
description: "這裡介紹的功能只是其中的一小部分。要了解更多有關如何使用Misskey的資訊,請瀏覽{link}。"
|
||||||
_timelineDescription:
|
_timelineDescription:
|
||||||
home: "在首頁時間線上,可以看到您追隨的使用者的貼文。"
|
home: "在首頁時間軸上,可以看到您追隨的使用者的貼文。"
|
||||||
local: "在本地時間軸上,可以看到此伺服器所有使用者的貼文。"
|
local: "在本地時間軸上,可以看到此伺服器所有使用者的貼文。"
|
||||||
social: "在社交時間軸上,可以看到首頁與本地時間軸的貼文。"
|
social: "在社交時間軸上,可以看到首頁與本地時間軸的貼文。"
|
||||||
global: "在公開時間軸上,可以看到其他已連接伺服器的貼文。\n"
|
global: "在公開時間軸上,可以看到其他已連接伺服器的貼文。\n"
|
||||||
|
@ -1264,6 +1266,8 @@ _serverSettings:
|
||||||
shortName: "簡稱"
|
shortName: "簡稱"
|
||||||
shortNameDescription: "如果伺服器的正式名稱很長,可用簡稱或通稱代替。"
|
shortNameDescription: "如果伺服器的正式名稱很長,可用簡稱或通稱代替。"
|
||||||
fanoutTimelineDescription: "如果啟用的話,檢索各個時間軸的性能會顯著提昇,資料庫的負荷也會減少。不過,Redis 的記憶體使用量會增加。如果伺服器的記憶體容量比較少或者運行不穩定,可以停用。"
|
fanoutTimelineDescription: "如果啟用的話,檢索各個時間軸的性能會顯著提昇,資料庫的負荷也會減少。不過,Redis 的記憶體使用量會增加。如果伺服器的記憶體容量比較少或者運行不穩定,可以停用。"
|
||||||
|
fanoutTimelineDbFallback: "資料庫的回退"
|
||||||
|
fanoutTimelineDbFallbackDescription: "若啟用,在時間軸沒有快取的情況下將執行回退處理以額外查詢資料庫。若停用,可以透過不執行回退處理來進一步減少伺服器的負荷,但會限制可取得的時間軸範圍。"
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "從其他帳戶遷移到這個帳戶"
|
moveFrom: "從其他帳戶遷移到這個帳戶"
|
||||||
moveFromSub: "為另一個帳戶建立別名"
|
moveFromSub: "為另一個帳戶建立別名"
|
||||||
|
@ -1272,7 +1276,7 @@ _accountMigration:
|
||||||
moveTo: "將這個帳戶遷移至新的帳戶"
|
moveTo: "將這個帳戶遷移至新的帳戶"
|
||||||
moveToLabel: "要遷移到的帳戶:"
|
moveToLabel: "要遷移到的帳戶:"
|
||||||
moveCannotBeUndone: "一旦遷移帳戶,就無法取消。"
|
moveCannotBeUndone: "一旦遷移帳戶,就無法取消。"
|
||||||
moveAccountDescription: "遷移至新帳戶。\n ・此帳戶的追隨者將自動追隨新帳戶;\n ・此帳戶的所有追隨者將被取消追隨;\n ・此帳戶不能再發文。\n\n雖然會自動遷移您追隨者,但必須手動遷移您追隨的帳戶。請在遷移前匯出此帳戶的「追隨中」名單,並在遷移後自行匯入。\n列表名單、靜音名單及封鎖名單也必須如此處理。\n\n(此說明適用於本伺服器,以及運行 Misskey v13.12.0 或更新版本的其他伺服器;如 Mastodon 等使用 ActivityPub 協定的其他軟體或有不同的處理方式。)"
|
moveAccountDescription: "遷移至新帳戶。\n ・此帳戶的追隨者將自動追隨新帳戶;\n ・此帳戶的所有追隨者將被取消追隨;\n ・此帳戶不能再發文。\n\n雖然會自動遷移您的追隨者,但必須手動遷移您追隨的帳戶。請在遷移前匯出此帳戶的「追隨中」名單,並在遷移後自行匯入。\n列表名單、靜音名單及封鎖名單也必須如此處理。\n\n(此說明適用於本伺服器,以及運行 Misskey v13.12.0 或更新版本的其他伺服器;如 Mastodon 等使用 ActivityPub 協定的其他軟體或有不同的處理方式。)"
|
||||||
moveAccountHowTo: "要遷移帳戶,首先要在目標帳戶中為此帳戶建立一個別名。\n 建立別名後,像這樣輸入目標帳戶:@username@server.example.com"
|
moveAccountHowTo: "要遷移帳戶,首先要在目標帳戶中為此帳戶建立一個別名。\n 建立別名後,像這樣輸入目標帳戶:@username@server.example.com"
|
||||||
startMigration: "遷移"
|
startMigration: "遷移"
|
||||||
migrationConfirm: "確定要將這個帳戶遷移至 {account} 嗎?一旦遷移就無法撤銷,也就無法以原來的狀態使用這個帳戶。\n另外,請確認在要遷移到的帳戶已經建立了一個別名。"
|
migrationConfirm: "確定要將這個帳戶遷移至 {account} 嗎?一旦遷移就無法撤銷,也就無法以原來的狀態使用這個帳戶。\n另外,請確認在要遷移到的帳戶已經建立了一個別名。"
|
||||||
|
@ -1723,7 +1727,7 @@ _wordMute:
|
||||||
muteWordsDescription: "空格代表「以及」(AND),換行代表「或者」(OR)。"
|
muteWordsDescription: "空格代表「以及」(AND),換行代表「或者」(OR)。"
|
||||||
muteWordsDescription2: "用斜線包圍關鍵字代表正規表達式。"
|
muteWordsDescription2: "用斜線包圍關鍵字代表正規表達式。"
|
||||||
_instanceMute:
|
_instanceMute:
|
||||||
instanceMuteDescription: "包括對被靜音實例上的使用者的回覆,被設定的實例上所有貼文及轉發都會被靜音。"
|
instanceMuteDescription: "包括對被靜音伺服器上的使用者的回覆,被設定的伺服器上所有貼文及轉發都會被靜音。"
|
||||||
instanceMuteDescription2: "設定時以換行進行分隔"
|
instanceMuteDescription2: "設定時以換行進行分隔"
|
||||||
title: "將隱藏被設定的實例貼文。"
|
title: "將隱藏被設定的實例貼文。"
|
||||||
heading: "將實例靜音"
|
heading: "將實例靜音"
|
||||||
|
@ -1815,6 +1819,14 @@ _ago:
|
||||||
monthsAgo: "{n} 個月前"
|
monthsAgo: "{n} 個月前"
|
||||||
yearsAgo: "{n} 年前"
|
yearsAgo: "{n} 年前"
|
||||||
invalid: "無"
|
invalid: "無"
|
||||||
|
_timeIn:
|
||||||
|
seconds: "{n} 秒後"
|
||||||
|
minutes: "{n} 分後"
|
||||||
|
hours: "{n} 小時後"
|
||||||
|
days: "{n} 日後"
|
||||||
|
weeks: "{n} 週後"
|
||||||
|
months: "{n} 個月後"
|
||||||
|
years: "{n} 年後"
|
||||||
_time:
|
_time:
|
||||||
second: "秒"
|
second: "秒"
|
||||||
minute: "分鐘"
|
minute: "分鐘"
|
||||||
|
|
14
package.json
14
package.json
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "2023.11.0-io",
|
"version": "2023.11.1-io",
|
||||||
"codename": "nasubi",
|
"codename": "nasubi",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/misskey-dev/misskey.git"
|
"url": "https://github.com/misskey-dev/misskey.git"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@8.10.2",
|
"packageManager": "pnpm@8.10.5",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/frontend",
|
"packages/frontend",
|
||||||
"packages/backend",
|
"packages/backend",
|
||||||
|
@ -54,12 +54,12 @@
|
||||||
"typescript": "5.2.2"
|
"typescript": "5.2.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "6.9.1",
|
"@typescript-eslint/eslint-plugin": "6.11.0",
|
||||||
"@typescript-eslint/parser": "6.9.1",
|
"@typescript-eslint/parser": "6.11.0",
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"cypress": "13.4.0",
|
"cypress": "13.5.1",
|
||||||
"eslint": "8.52.0",
|
"eslint": "8.53.0",
|
||||||
"start-server-and-test": "2.0.1"
|
"start-server-and-test": "2.0.3"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@tensorflow/tfjs-core": "4.4.0"
|
"@tensorflow/tfjs-core": "4.4.0"
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class EnableFanoutTimelineDbFallback1700096812223 {
|
||||||
|
name = 'EnableFanoutTimelineDbFallback1700096812223'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" ADD "enableFanoutTimelineDbFallback" boolean NOT NULL DEFAULT true`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "enableFanoutTimelineDbFallback"`);
|
||||||
|
}
|
||||||
|
}
|
|
@ -59,16 +59,15 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "3.412.0",
|
"@aws-sdk/client-s3": "3.412.0",
|
||||||
"@aws-sdk/lib-storage": "3.412.0",
|
"@aws-sdk/lib-storage": "3.412.0",
|
||||||
"@smithy/node-http-handler": "2.1.5",
|
|
||||||
"@bull-board/api": "5.9.1",
|
"@bull-board/api": "5.9.1",
|
||||||
"@bull-board/fastify": "5.9.1",
|
"@bull-board/fastify": "5.9.1",
|
||||||
"@bull-board/ui": "5.9.1",
|
"@bull-board/ui": "5.9.1",
|
||||||
"@discordapp/twemoji": "14.1.2",
|
"@discordapp/twemoji": "14.1.2",
|
||||||
"@fastify/accepts": "4.2.0",
|
"@fastify/accepts": "4.2.0",
|
||||||
"@fastify/cookie": "9.1.0",
|
"@fastify/cookie": "9.2.0",
|
||||||
"@fastify/cors": "8.4.1",
|
"@fastify/cors": "8.4.1",
|
||||||
"@fastify/express": "2.3.0",
|
"@fastify/express": "2.3.0",
|
||||||
"@fastify/http-proxy": "9.2.1",
|
"@fastify/http-proxy": "9.3.0",
|
||||||
"@fastify/multipart": "8.0.0",
|
"@fastify/multipart": "8.0.0",
|
||||||
"@fastify/static": "6.12.0",
|
"@fastify/static": "6.12.0",
|
||||||
"@fastify/view": "8.2.0",
|
"@fastify/view": "8.2.0",
|
||||||
|
@ -78,8 +77,9 @@
|
||||||
"@peertube/http-signature": "1.7.0",
|
"@peertube/http-signature": "1.7.0",
|
||||||
"@simplewebauthn/server": "8.3.5",
|
"@simplewebauthn/server": "8.3.5",
|
||||||
"@sinonjs/fake-timers": "11.2.2",
|
"@sinonjs/fake-timers": "11.2.2",
|
||||||
"@swc/cli": "0.1.62",
|
"@smithy/node-http-handler": "2.1.5",
|
||||||
"@swc/core": "1.3.95",
|
"@swc/cli": "0.1.63",
|
||||||
|
"@swc/core": "1.3.96",
|
||||||
"accepts": "1.3.8",
|
"accepts": "1.3.8",
|
||||||
"ajv": "8.12.0",
|
"ajv": "8.12.0",
|
||||||
"archiver": "6.0.1",
|
"archiver": "6.0.1",
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
"bcryptjs": "2.4.3",
|
"bcryptjs": "2.4.3",
|
||||||
"blurhash": "2.0.5",
|
"blurhash": "2.0.5",
|
||||||
"body-parser": "1.20.2",
|
"body-parser": "1.20.2",
|
||||||
"bullmq": "4.12.8",
|
"bullmq": "4.13.3",
|
||||||
"cacheable-lookup": "7.0.0",
|
"cacheable-lookup": "7.0.0",
|
||||||
"cbor": "9.0.1",
|
"cbor": "9.0.1",
|
||||||
"chalk": "5.3.0",
|
"chalk": "5.3.0",
|
||||||
|
@ -99,8 +99,9 @@
|
||||||
"date-fns": "2.30.0",
|
"date-fns": "2.30.0",
|
||||||
"deep-email-validator": "0.1.21",
|
"deep-email-validator": "0.1.21",
|
||||||
"fastify": "4.24.3",
|
"fastify": "4.24.3",
|
||||||
|
"fastify-raw-body": "4.3.0",
|
||||||
"feed": "4.2.2",
|
"feed": "4.2.2",
|
||||||
"file-type": "18.6.0",
|
"file-type": "18.7.0",
|
||||||
"fluent-ffmpeg": "2.1.2",
|
"fluent-ffmpeg": "2.1.2",
|
||||||
"form-data": "4.0.0",
|
"form-data": "4.0.0",
|
||||||
"got": "13.0.0",
|
"got": "13.0.0",
|
||||||
|
@ -122,7 +123,7 @@
|
||||||
"mime-types": "2.1.35",
|
"mime-types": "2.1.35",
|
||||||
"misskey-js": "workspace:*",
|
"misskey-js": "workspace:*",
|
||||||
"ms": "3.0.0-canary.1",
|
"ms": "3.0.0-canary.1",
|
||||||
"nanoid": "5.0.2",
|
"nanoid": "5.0.3",
|
||||||
"nested-property": "4.0.0",
|
"nested-property": "4.0.0",
|
||||||
"node-fetch": "3.3.2",
|
"node-fetch": "3.3.2",
|
||||||
"nodemailer": "6.9.7",
|
"nodemailer": "6.9.7",
|
||||||
|
@ -131,7 +132,7 @@
|
||||||
"oauth2orize": "1.12.0",
|
"oauth2orize": "1.12.0",
|
||||||
"oauth2orize-pkce": "0.1.2",
|
"oauth2orize-pkce": "0.1.2",
|
||||||
"os-utils": "0.0.14",
|
"os-utils": "0.0.14",
|
||||||
"otpauth": "9.1.5",
|
"otpauth": "9.2.0",
|
||||||
"parse5": "7.1.2",
|
"parse5": "7.1.2",
|
||||||
"pg": "8.11.3",
|
"pg": "8.11.3",
|
||||||
"pkce-challenge": "4.0.1",
|
"pkce-challenge": "4.0.1",
|
||||||
|
@ -143,20 +144,21 @@
|
||||||
"qrcode": "1.5.3",
|
"qrcode": "1.5.3",
|
||||||
"random-seed": "0.3.0",
|
"random-seed": "0.3.0",
|
||||||
"ratelimiter": "3.4.1",
|
"ratelimiter": "3.4.1",
|
||||||
"re2": "1.20.5",
|
"re2": "1.20.8",
|
||||||
"redis-lock": "0.1.4",
|
"redis-lock": "0.1.4",
|
||||||
"reflect-metadata": "0.1.13",
|
"reflect-metadata": "0.1.13",
|
||||||
"rename": "1.0.4",
|
"rename": "1.0.4",
|
||||||
"rss-parser": "3.13.0",
|
"rss-parser": "3.13.0",
|
||||||
"rxjs": "7.8.1",
|
"rxjs": "7.8.1",
|
||||||
"sanitize-html": "2.11.0",
|
"sanitize-html": "2.11.0",
|
||||||
|
"secure-json-parse": "2.7.0",
|
||||||
"sharp": "0.32.6",
|
"sharp": "0.32.6",
|
||||||
"sharp-read-bmp": "github:misskey-dev/sharp-read-bmp",
|
"sharp-read-bmp": "github:misskey-dev/sharp-read-bmp",
|
||||||
"slacc": "0.0.10",
|
"slacc": "0.0.10",
|
||||||
"strict-event-emitter-types": "2.0.0",
|
"strict-event-emitter-types": "2.0.0",
|
||||||
"stringz": "2.1.0",
|
"stringz": "2.1.0",
|
||||||
"summaly": "github:misskey-dev/summaly",
|
"summaly": "github:misskey-dev/summaly",
|
||||||
"systeminformation": "5.21.15",
|
"systeminformation": "5.21.17",
|
||||||
"tinycolor2": "1.6.0",
|
"tinycolor2": "1.6.0",
|
||||||
"tmp": "0.2.1",
|
"tmp": "0.2.1",
|
||||||
"tsc-alias": "1.8.8",
|
"tsc-alias": "1.8.8",
|
||||||
|
@ -174,50 +176,50 @@
|
||||||
"@jest/globals": "29.7.0",
|
"@jest/globals": "29.7.0",
|
||||||
"@simplewebauthn/typescript-types": "8.3.4",
|
"@simplewebauthn/typescript-types": "8.3.4",
|
||||||
"@swc/jest": "0.2.29",
|
"@swc/jest": "0.2.29",
|
||||||
"@types/accepts": "1.3.6",
|
"@types/accepts": "1.3.7",
|
||||||
"@types/archiver": "6.0.0",
|
"@types/archiver": "6.0.1",
|
||||||
"@types/bcryptjs": "2.4.5",
|
"@types/bcryptjs": "2.4.6",
|
||||||
"@types/body-parser": "1.19.4",
|
"@types/body-parser": "1.19.5",
|
||||||
"@types/cbor": "6.0.0",
|
"@types/cbor": "6.0.0",
|
||||||
"@types/color-convert": "2.0.2",
|
"@types/color-convert": "2.0.3",
|
||||||
"@types/content-disposition": "0.5.7",
|
"@types/content-disposition": "0.5.8",
|
||||||
"@types/fluent-ffmpeg": "2.1.23",
|
"@types/fluent-ffmpeg": "2.1.24",
|
||||||
"@types/http-link-header": "1.0.4",
|
"@types/http-link-header": "1.0.5",
|
||||||
"@types/jest": "29.5.7",
|
"@types/jest": "29.5.8",
|
||||||
"@types/js-yaml": "4.0.8",
|
"@types/js-yaml": "4.0.9",
|
||||||
"@types/jsdom": "21.1.4",
|
"@types/jsdom": "21.1.5",
|
||||||
"@types/jsonld": "1.5.11",
|
"@types/jsonld": "1.5.12",
|
||||||
"@types/jsrsasign": "10.5.11",
|
"@types/jsrsasign": "10.5.12",
|
||||||
"@types/mime-types": "2.1.3",
|
"@types/mime-types": "2.1.4",
|
||||||
"@types/ms": "0.7.33",
|
"@types/ms": "0.7.34",
|
||||||
"@types/node": "20.8.10",
|
"@types/node": "20.9.1",
|
||||||
"@types/node-fetch": "3.0.3",
|
"@types/node-fetch": "3.0.3",
|
||||||
"@types/nodemailer": "6.4.13",
|
"@types/nodemailer": "6.4.14",
|
||||||
"@types/oauth": "0.9.3",
|
"@types/oauth": "0.9.4",
|
||||||
"@types/oauth2orize": "1.11.2",
|
"@types/oauth2orize": "1.11.3",
|
||||||
"@types/oauth2orize-pkce": "0.1.1",
|
"@types/oauth2orize-pkce": "0.1.2",
|
||||||
"@types/pg": "8.10.7",
|
"@types/pg": "8.10.9",
|
||||||
"@types/pug": "2.0.8",
|
"@types/pug": "2.0.9",
|
||||||
"@types/punycode": "2.1.1",
|
"@types/punycode": "2.1.2",
|
||||||
"@types/qrcode": "1.5.4",
|
"@types/qrcode": "1.5.5",
|
||||||
"@types/random-seed": "0.3.4",
|
"@types/random-seed": "0.3.5",
|
||||||
"@types/ratelimiter": "3.4.5",
|
"@types/ratelimiter": "3.4.6",
|
||||||
"@types/rename": "1.0.6",
|
"@types/rename": "1.0.7",
|
||||||
"@types/sanitize-html": "2.9.3",
|
"@types/sanitize-html": "2.9.4",
|
||||||
"@types/semver": "7.5.4",
|
"@types/semver": "7.5.5",
|
||||||
"@types/sharp": "0.32.0",
|
"@types/sharp": "0.32.0",
|
||||||
"@types/simple-oauth2": "5.0.6",
|
"@types/simple-oauth2": "5.0.7",
|
||||||
"@types/sinonjs__fake-timers": "8.1.4",
|
"@types/sinonjs__fake-timers": "8.1.5",
|
||||||
"@types/tinycolor2": "1.4.5",
|
"@types/tinycolor2": "1.4.6",
|
||||||
"@types/tmp": "0.2.5",
|
"@types/tmp": "0.2.6",
|
||||||
"@types/vary": "1.1.2",
|
"@types/vary": "1.1.3",
|
||||||
"@types/web-push": "3.6.2",
|
"@types/web-push": "3.6.3",
|
||||||
"@types/ws": "8.5.8",
|
"@types/ws": "8.5.9",
|
||||||
"@typescript-eslint/eslint-plugin": "6.9.1",
|
"@typescript-eslint/eslint-plugin": "6.11.0",
|
||||||
"@typescript-eslint/parser": "6.9.1",
|
"@typescript-eslint/parser": "6.11.0",
|
||||||
"aws-sdk-client-mock": "3.0.0",
|
"aws-sdk-client-mock": "3.0.0",
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"eslint": "8.52.0",
|
"eslint": "8.53.0",
|
||||||
"eslint-plugin-import": "2.29.0",
|
"eslint-plugin-import": "2.29.0",
|
||||||
"execa": "8.0.1",
|
"execa": "8.0.1",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
|
|
|
@ -276,9 +276,18 @@ export class MfmService {
|
||||||
},
|
},
|
||||||
|
|
||||||
fn: (node) => {
|
fn: (node) => {
|
||||||
const el = doc.createElement('i');
|
if (node.props.name === 'unixtime') {
|
||||||
appendChildren(node.children, el);
|
const text = node.children[0]!.type === 'text' ? node.children[0].props.text : '';
|
||||||
return el;
|
const date = new Date(parseInt(text, 10) * 1000);
|
||||||
|
const el = doc.createElement('time');
|
||||||
|
el.setAttribute('datetime', date.toISOString());
|
||||||
|
el.textContent = date.toISOString();
|
||||||
|
return el;
|
||||||
|
} else {
|
||||||
|
const el = doc.createElement('i');
|
||||||
|
appendChildren(node.children, el);
|
||||||
|
return el;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
blockCode: (node) => {
|
blockCode: (node) => {
|
||||||
|
|
|
@ -521,11 +521,13 @@ export class NoteCreateService implements OnApplicationShutdown {
|
||||||
followeeId: user.id,
|
followeeId: user.id,
|
||||||
notify: 'normal',
|
notify: 'normal',
|
||||||
}).then(followings => {
|
}).then(followings => {
|
||||||
for (const following of followings) {
|
if (note.visibility !== 'specified') {
|
||||||
// TODO: ワードミュート考慮
|
for (const following of followings) {
|
||||||
this.notificationService.createNotification(following.followerId, 'note', {
|
// TODO: ワードミュート考慮
|
||||||
noteId: note.id,
|
this.notificationService.createNotification(following.followerId, 'note', {
|
||||||
}, user.id);
|
noteId: note.id,
|
||||||
|
}, user.id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -464,7 +464,7 @@ export class ApRendererService {
|
||||||
const attachment = profile.fields.map(field => ({
|
const attachment = profile.fields.map(field => ({
|
||||||
type: 'PropertyValue',
|
type: 'PropertyValue',
|
||||||
name: field.name,
|
name: field.name,
|
||||||
value: /^https?:/.test(field.value)
|
value: (field.value.startsWith('http://') || field.value.startsWith('https://'))
|
||||||
? `<a href="${new URL(field.value).href}" rel="me nofollow noopener" target="_blank">${new URL(field.value).href}</a>`
|
? `<a href="${new URL(field.value).href}" rel="me nofollow noopener" target="_blank">${new URL(field.value).href}</a>`
|
||||||
: field.value,
|
: field.value,
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -47,6 +47,7 @@ export class InstanceEntityService {
|
||||||
faviconUrl: instance.faviconUrl,
|
faviconUrl: instance.faviconUrl,
|
||||||
themeColor: instance.themeColor,
|
themeColor: instance.themeColor,
|
||||||
infoUpdatedAt: instance.infoUpdatedAt ? instance.infoUpdatedAt.toISOString() : null,
|
infoUpdatedAt: instance.infoUpdatedAt ? instance.infoUpdatedAt.toISOString() : null,
|
||||||
|
latestRequestReceivedAt: instance.latestRequestReceivedAt ? instance.latestRequestReceivedAt.toISOString() : null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -494,6 +494,11 @@ export class MiMeta {
|
||||||
})
|
})
|
||||||
public enableFanoutTimeline: boolean;
|
public enableFanoutTimeline: boolean;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: true,
|
||||||
|
})
|
||||||
|
public enableFanoutTimelineDbFallback: boolean;
|
||||||
|
|
||||||
@Column('integer', {
|
@Column('integer', {
|
||||||
default: 300,
|
default: 300,
|
||||||
})
|
})
|
||||||
|
|
|
@ -103,5 +103,10 @@ export const packedFederationInstanceSchema = {
|
||||||
optional: false, nullable: true,
|
optional: false, nullable: true,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
},
|
},
|
||||||
|
latestRequestReceivedAt: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
format: 'date-time',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import * as crypto from 'node:crypto';
|
||||||
import { IncomingMessage } from 'node:http';
|
import { IncomingMessage } from 'node:http';
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import fastifyAccepts from '@fastify/accepts';
|
import fastifyAccepts from '@fastify/accepts';
|
||||||
|
@ -10,6 +11,7 @@ import httpSignature from '@peertube/http-signature';
|
||||||
import { Brackets, In, IsNull, LessThan, Not } from 'typeorm';
|
import { Brackets, In, IsNull, LessThan, Not } from 'typeorm';
|
||||||
import accepts from 'accepts';
|
import accepts from 'accepts';
|
||||||
import vary from 'vary';
|
import vary from 'vary';
|
||||||
|
import secureJson from 'secure-json-parse';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import type { FollowingsRepository, NotesRepository, EmojisRepository, NoteReactionsRepository, UserProfilesRepository, UserNotePiningsRepository, UsersRepository, FollowRequestsRepository } from '@/models/_.js';
|
import type { FollowingsRepository, NotesRepository, EmojisRepository, NoteReactionsRepository, UserProfilesRepository, UserNotePiningsRepository, UsersRepository, FollowRequestsRepository } from '@/models/_.js';
|
||||||
import * as url from '@/misc/prelude/url.js';
|
import * as url from '@/misc/prelude/url.js';
|
||||||
|
@ -27,7 +29,7 @@ import { UserEntityService } from '@/core/entities/UserEntityService.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { IActivity } from '@/core/activitypub/type.js';
|
import { IActivity } from '@/core/activitypub/type.js';
|
||||||
import { isPureRenote } from '@/misc/is-pure-renote.js';
|
import { isPureRenote } from '@/misc/is-pure-renote.js';
|
||||||
import type { FastifyInstance, FastifyRequest, FastifyReply, FastifyPluginOptions } from 'fastify';
|
import type { FastifyInstance, FastifyRequest, FastifyReply, FastifyPluginOptions, FastifyBodyParser } from 'fastify';
|
||||||
import type { FindOptionsWhere } from 'typeorm';
|
import type { FindOptionsWhere } from 'typeorm';
|
||||||
|
|
||||||
const ACTIVITY_JSON = 'application/activity+json; charset=utf-8';
|
const ACTIVITY_JSON = 'application/activity+json; charset=utf-8';
|
||||||
|
@ -108,7 +110,58 @@ export class ActivityPubServerService {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: request.bodyのバリデーション?
|
if (signature.params.headers.indexOf('host') === -1
|
||||||
|
|| request.headers.host !== this.config.host) {
|
||||||
|
// Host not specified or not match.
|
||||||
|
reply.code(401);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (signature.params.headers.indexOf('digest') === -1) {
|
||||||
|
// Digest not found.
|
||||||
|
reply.code(401);
|
||||||
|
} else {
|
||||||
|
const digest = request.headers.digest;
|
||||||
|
|
||||||
|
if (typeof digest !== 'string') {
|
||||||
|
// Huh?
|
||||||
|
reply.code(401);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const re = /^([a-zA-Z0-9\-]+)=(.+)$/;
|
||||||
|
const match = digest.match(re);
|
||||||
|
|
||||||
|
if (match == null) {
|
||||||
|
// Invalid digest
|
||||||
|
reply.code(401);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const algo = match[1];
|
||||||
|
const digestValue = match[2];
|
||||||
|
|
||||||
|
if (algo !== 'SHA-256') {
|
||||||
|
// Unsupported digest algorithm
|
||||||
|
reply.code(401);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (request.rawBody == null) {
|
||||||
|
// Bad request
|
||||||
|
reply.code(400);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const hash = crypto.createHash('sha256').update(request.rawBody).digest('base64');
|
||||||
|
|
||||||
|
if (hash !== digestValue) {
|
||||||
|
// Invalid digest
|
||||||
|
reply.code(401);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.queueService.inbox(request.body as IActivity, signature);
|
this.queueService.inbox(request.body as IActivity, signature);
|
||||||
|
|
||||||
reply.code(202);
|
reply.code(202);
|
||||||
|
@ -460,9 +513,28 @@ export class ActivityPubServerService {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const almostDefaultJsonParser: FastifyBodyParser<Buffer> = function (request, rawBody, done) {
|
||||||
|
if (rawBody.length === 0) {
|
||||||
|
const err = new Error('Body cannot be empty!') as any;
|
||||||
|
err.statusCode = 400;
|
||||||
|
return done(err);
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const json = secureJson.parse(rawBody.toString('utf8'), null, {
|
||||||
|
protoAction: 'ignore',
|
||||||
|
constructorAction: 'ignore',
|
||||||
|
});
|
||||||
|
done(null, json);
|
||||||
|
} catch (err: any) {
|
||||||
|
err.statusCode = 400;
|
||||||
|
return done(err);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
fastify.register(fastifyAccepts);
|
fastify.register(fastifyAccepts);
|
||||||
fastify.addContentTypeParser('application/activity+json', { parseAs: 'string' }, fastify.getDefaultJsonParser('ignore', 'ignore'));
|
fastify.addContentTypeParser('application/activity+json', { parseAs: 'buffer' }, almostDefaultJsonParser);
|
||||||
fastify.addContentTypeParser('application/ld+json', { parseAs: 'string' }, fastify.getDefaultJsonParser('ignore', 'ignore'));
|
fastify.addContentTypeParser('application/ld+json', { parseAs: 'buffer' }, almostDefaultJsonParser);
|
||||||
|
|
||||||
fastify.addHook('onRequest', (request, reply, done) => {
|
fastify.addHook('onRequest', (request, reply, done) => {
|
||||||
reply.header('Access-Control-Allow-Headers', 'Accept');
|
reply.header('Access-Control-Allow-Headers', 'Accept');
|
||||||
|
@ -474,8 +546,8 @@ export class ActivityPubServerService {
|
||||||
|
|
||||||
//#region Routing
|
//#region Routing
|
||||||
// inbox (limit: 64kb)
|
// inbox (limit: 64kb)
|
||||||
fastify.post('/inbox', { bodyLimit: 1024 * 64 }, async (request, reply) => await this.inbox(request, reply));
|
fastify.post('/inbox', { config: { rawBody: true }, bodyLimit: 1024 * 64 }, async (request, reply) => await this.inbox(request, reply));
|
||||||
fastify.post('/users/:user/inbox', { bodyLimit: 1024 * 64 }, async (request, reply) => await this.inbox(request, reply));
|
fastify.post('/users/:user/inbox', { config: { rawBody: true }, bodyLimit: 1024 * 64 }, async (request, reply) => await this.inbox(request, reply));
|
||||||
|
|
||||||
// note
|
// note
|
||||||
fastify.get<{ Params: { note: string; } }>('/notes/:note', { constraints: { apOrHtml: 'ap' } }, async (request, reply) => {
|
fastify.get<{ Params: { note: string; } }>('/notes/:note', { constraints: { apOrHtml: 'ap' } }, async (request, reply) => {
|
||||||
|
|
|
@ -10,6 +10,7 @@ import { fileURLToPath } from 'node:url';
|
||||||
import { Inject, Injectable, OnApplicationShutdown } from '@nestjs/common';
|
import { Inject, Injectable, OnApplicationShutdown } from '@nestjs/common';
|
||||||
import Fastify, { FastifyInstance } from 'fastify';
|
import Fastify, { FastifyInstance } from 'fastify';
|
||||||
import fastifyStatic from '@fastify/static';
|
import fastifyStatic from '@fastify/static';
|
||||||
|
import fastifyRawBody from 'fastify-raw-body';
|
||||||
import { IsNull } from 'typeorm';
|
import { IsNull } from 'typeorm';
|
||||||
import { GlobalEventService } from '@/core/GlobalEventService.js';
|
import { GlobalEventService } from '@/core/GlobalEventService.js';
|
||||||
import type { Config } from '@/config.js';
|
import type { Config } from '@/config.js';
|
||||||
|
@ -87,6 +88,13 @@ export class ServerService implements OnApplicationShutdown {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Register raw-body parser for ActivityPub HTTP signature validation.
|
||||||
|
await fastify.register(fastifyRawBody, {
|
||||||
|
global: false,
|
||||||
|
encoding: null,
|
||||||
|
runFirst: true,
|
||||||
|
});
|
||||||
|
|
||||||
// Register non-serving static server so that the child services can use reply.sendFile.
|
// Register non-serving static server so that the child services can use reply.sendFile.
|
||||||
// `root` here is just a placeholder and each call must use its own `rootPath`.
|
// `root` here is just a placeholder and each call must use its own `rootPath`.
|
||||||
fastify.register(fastifyStatic, {
|
fastify.register(fastifyStatic, {
|
||||||
|
|
|
@ -10,6 +10,7 @@ import * as ep___admin_meta from './endpoints/admin/meta.js';
|
||||||
import * as ep___admin_abuseUserReports from './endpoints/admin/abuse-user-reports.js';
|
import * as ep___admin_abuseUserReports from './endpoints/admin/abuse-user-reports.js';
|
||||||
import * as ep___admin_accounts_create from './endpoints/admin/accounts/create.js';
|
import * as ep___admin_accounts_create from './endpoints/admin/accounts/create.js';
|
||||||
import * as ep___admin_accounts_delete from './endpoints/admin/accounts/delete.js';
|
import * as ep___admin_accounts_delete from './endpoints/admin/accounts/delete.js';
|
||||||
|
import * as ep___admin_accounts_findByEmail from './endpoints/admin/accounts/find-by-email.js';
|
||||||
import * as ep___admin_ad_create from './endpoints/admin/ad/create.js';
|
import * as ep___admin_ad_create from './endpoints/admin/ad/create.js';
|
||||||
import * as ep___admin_ad_delete from './endpoints/admin/ad/delete.js';
|
import * as ep___admin_ad_delete from './endpoints/admin/ad/delete.js';
|
||||||
import * as ep___admin_ad_list from './endpoints/admin/ad/list.js';
|
import * as ep___admin_ad_list from './endpoints/admin/ad/list.js';
|
||||||
|
@ -374,6 +375,7 @@ const $admin_meta: Provider = { provide: 'ep:admin/meta', useClass: ep___admin_m
|
||||||
const $admin_abuseUserReports: Provider = { provide: 'ep:admin/abuse-user-reports', useClass: ep___admin_abuseUserReports.default };
|
const $admin_abuseUserReports: Provider = { provide: 'ep:admin/abuse-user-reports', useClass: ep___admin_abuseUserReports.default };
|
||||||
const $admin_accounts_create: Provider = { provide: 'ep:admin/accounts/create', useClass: ep___admin_accounts_create.default };
|
const $admin_accounts_create: Provider = { provide: 'ep:admin/accounts/create', useClass: ep___admin_accounts_create.default };
|
||||||
const $admin_accounts_delete: Provider = { provide: 'ep:admin/accounts/delete', useClass: ep___admin_accounts_delete.default };
|
const $admin_accounts_delete: Provider = { provide: 'ep:admin/accounts/delete', useClass: ep___admin_accounts_delete.default };
|
||||||
|
const $admin_accounts_findByEmail: Provider = { provide: 'ep:admin/accounts/find-by-email', useClass: ep___admin_accounts_findByEmail.default };
|
||||||
const $admin_ad_create: Provider = { provide: 'ep:admin/ad/create', useClass: ep___admin_ad_create.default };
|
const $admin_ad_create: Provider = { provide: 'ep:admin/ad/create', useClass: ep___admin_ad_create.default };
|
||||||
const $admin_ad_delete: Provider = { provide: 'ep:admin/ad/delete', useClass: ep___admin_ad_delete.default };
|
const $admin_ad_delete: Provider = { provide: 'ep:admin/ad/delete', useClass: ep___admin_ad_delete.default };
|
||||||
const $admin_ad_list: Provider = { provide: 'ep:admin/ad/list', useClass: ep___admin_ad_list.default };
|
const $admin_ad_list: Provider = { provide: 'ep:admin/ad/list', useClass: ep___admin_ad_list.default };
|
||||||
|
@ -742,6 +744,7 @@ const $retention: Provider = { provide: 'ep:retention', useClass: ep___retention
|
||||||
$admin_abuseUserReports,
|
$admin_abuseUserReports,
|
||||||
$admin_accounts_create,
|
$admin_accounts_create,
|
||||||
$admin_accounts_delete,
|
$admin_accounts_delete,
|
||||||
|
$admin_accounts_findByEmail,
|
||||||
$admin_ad_create,
|
$admin_ad_create,
|
||||||
$admin_ad_delete,
|
$admin_ad_delete,
|
||||||
$admin_ad_list,
|
$admin_ad_list,
|
||||||
|
@ -1104,6 +1107,7 @@ const $retention: Provider = { provide: 'ep:retention', useClass: ep___retention
|
||||||
$admin_abuseUserReports,
|
$admin_abuseUserReports,
|
||||||
$admin_accounts_create,
|
$admin_accounts_create,
|
||||||
$admin_accounts_delete,
|
$admin_accounts_delete,
|
||||||
|
$admin_accounts_findByEmail,
|
||||||
$admin_ad_create,
|
$admin_ad_create,
|
||||||
$admin_ad_delete,
|
$admin_ad_delete,
|
||||||
$admin_ad_list,
|
$admin_ad_list,
|
||||||
|
|
|
@ -10,6 +10,7 @@ import * as ep___admin_meta from './endpoints/admin/meta.js';
|
||||||
import * as ep___admin_abuseUserReports from './endpoints/admin/abuse-user-reports.js';
|
import * as ep___admin_abuseUserReports from './endpoints/admin/abuse-user-reports.js';
|
||||||
import * as ep___admin_accounts_create from './endpoints/admin/accounts/create.js';
|
import * as ep___admin_accounts_create from './endpoints/admin/accounts/create.js';
|
||||||
import * as ep___admin_accounts_delete from './endpoints/admin/accounts/delete.js';
|
import * as ep___admin_accounts_delete from './endpoints/admin/accounts/delete.js';
|
||||||
|
import * as ep___admin_accounts_findByEmail from './endpoints/admin/accounts/find-by-email.js';
|
||||||
import * as ep___admin_ad_create from './endpoints/admin/ad/create.js';
|
import * as ep___admin_ad_create from './endpoints/admin/ad/create.js';
|
||||||
import * as ep___admin_ad_delete from './endpoints/admin/ad/delete.js';
|
import * as ep___admin_ad_delete from './endpoints/admin/ad/delete.js';
|
||||||
import * as ep___admin_ad_list from './endpoints/admin/ad/list.js';
|
import * as ep___admin_ad_list from './endpoints/admin/ad/list.js';
|
||||||
|
@ -372,6 +373,7 @@ const eps = [
|
||||||
['admin/abuse-user-reports', ep___admin_abuseUserReports],
|
['admin/abuse-user-reports', ep___admin_abuseUserReports],
|
||||||
['admin/accounts/create', ep___admin_accounts_create],
|
['admin/accounts/create', ep___admin_accounts_create],
|
||||||
['admin/accounts/delete', ep___admin_accounts_delete],
|
['admin/accounts/delete', ep___admin_accounts_delete],
|
||||||
|
['admin/accounts/find-by-email', ep___admin_accounts_findByEmail],
|
||||||
['admin/ad/create', ep___admin_ad_create],
|
['admin/ad/create', ep___admin_ad_create],
|
||||||
['admin/ad/delete', ep___admin_ad_delete],
|
['admin/ad/delete', ep___admin_ad_delete],
|
||||||
['admin/ad/list', ep___admin_ad_list],
|
['admin/ad/list', ep___admin_ad_list],
|
||||||
|
|
|
@ -0,0 +1,61 @@
|
||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
|
import { Endpoint } from '@/server/api/endpoint-base.js';
|
||||||
|
import type { UserProfilesRepository } from '@/models/_.js';
|
||||||
|
import { DI } from '@/di-symbols.js';
|
||||||
|
import { UserEntityService } from '@/core/entities/UserEntityService.js';
|
||||||
|
import { ApiError } from '@/server/api/error.js';
|
||||||
|
|
||||||
|
export const meta = {
|
||||||
|
tags: ['admin'],
|
||||||
|
|
||||||
|
requireCredential: true,
|
||||||
|
requireAdmin: true,
|
||||||
|
|
||||||
|
errors: {
|
||||||
|
userNotFound: {
|
||||||
|
message: 'No such user who has the email address.',
|
||||||
|
code: 'USER_NOT_FOUND',
|
||||||
|
id: 'cb865949-8af5-4062-a88c-ef55e8786d1d',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export const paramDef = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
email: { type: 'string' },
|
||||||
|
},
|
||||||
|
required: ['email'],
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-disable-line import/no-default-export
|
||||||
|
constructor(
|
||||||
|
@Inject(DI.userProfilesRepository)
|
||||||
|
private userProfilesRepository: UserProfilesRepository,
|
||||||
|
|
||||||
|
private userEntityService: UserEntityService,
|
||||||
|
) {
|
||||||
|
super(meta, paramDef, async (ps, me) => {
|
||||||
|
const profile = await this.userProfilesRepository.findOne({
|
||||||
|
where: { email: ps.email },
|
||||||
|
relations: ['user'],
|
||||||
|
});
|
||||||
|
|
||||||
|
if (profile == null) {
|
||||||
|
throw new ApiError(meta.errors.userNotFound);
|
||||||
|
}
|
||||||
|
|
||||||
|
const res = await this.userEntityService.pack(profile.user!, null, {
|
||||||
|
detail: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
return res;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
|
@ -295,6 +295,10 @@ export const meta = {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
|
enableFanoutTimelineDbFallback: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
perLocalUserUserTimelineCacheMax: {
|
perLocalUserUserTimelineCacheMax: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
|
@ -432,6 +436,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
policies: { ...DEFAULT_POLICIES, ...instance.policies },
|
policies: { ...DEFAULT_POLICIES, ...instance.policies },
|
||||||
manifestJsonOverride: instance.manifestJsonOverride,
|
manifestJsonOverride: instance.manifestJsonOverride,
|
||||||
enableFanoutTimeline: instance.enableFanoutTimeline,
|
enableFanoutTimeline: instance.enableFanoutTimeline,
|
||||||
|
enableFanoutTimelineDbFallback: instance.enableFanoutTimelineDbFallback,
|
||||||
perLocalUserUserTimelineCacheMax: instance.perLocalUserUserTimelineCacheMax,
|
perLocalUserUserTimelineCacheMax: instance.perLocalUserUserTimelineCacheMax,
|
||||||
perRemoteUserUserTimelineCacheMax: instance.perRemoteUserUserTimelineCacheMax,
|
perRemoteUserUserTimelineCacheMax: instance.perRemoteUserUserTimelineCacheMax,
|
||||||
perUserHomeTimelineCacheMax: instance.perUserHomeTimelineCacheMax,
|
perUserHomeTimelineCacheMax: instance.perUserHomeTimelineCacheMax,
|
||||||
|
|
|
@ -121,6 +121,7 @@ export const paramDef = {
|
||||||
preservedUsernames: { type: 'array', items: { type: 'string' } },
|
preservedUsernames: { type: 'array', items: { type: 'string' } },
|
||||||
manifestJsonOverride: { type: 'string' },
|
manifestJsonOverride: { type: 'string' },
|
||||||
enableFanoutTimeline: { type: 'boolean' },
|
enableFanoutTimeline: { type: 'boolean' },
|
||||||
|
enableFanoutTimelineDbFallback: { type: 'boolean' },
|
||||||
perLocalUserUserTimelineCacheMax: { type: 'integer' },
|
perLocalUserUserTimelineCacheMax: { type: 'integer' },
|
||||||
perRemoteUserUserTimelineCacheMax: { type: 'integer' },
|
perRemoteUserUserTimelineCacheMax: { type: 'integer' },
|
||||||
perUserHomeTimelineCacheMax: { type: 'integer' },
|
perUserHomeTimelineCacheMax: { type: 'integer' },
|
||||||
|
@ -493,6 +494,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
set.enableFanoutTimeline = ps.enableFanoutTimeline;
|
set.enableFanoutTimeline = ps.enableFanoutTimeline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ps.enableFanoutTimelineDbFallback !== undefined) {
|
||||||
|
set.enableFanoutTimelineDbFallback = ps.enableFanoutTimelineDbFallback;
|
||||||
|
}
|
||||||
|
|
||||||
if (ps.perLocalUserUserTimelineCacheMax !== undefined) {
|
if (ps.perLocalUserUserTimelineCacheMax !== undefined) {
|
||||||
set.perLocalUserUserTimelineCacheMax = ps.perLocalUserUserTimelineCacheMax;
|
set.perLocalUserUserTimelineCacheMax = ps.perLocalUserUserTimelineCacheMax;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ export const paramDef = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
tokenId: { type: 'string', format: 'misskey:id' },
|
tokenId: { type: 'string', format: 'misskey:id' },
|
||||||
token: { type: 'string' },
|
token: { type: 'string', nullable: true },
|
||||||
},
|
},
|
||||||
anyOf: [
|
anyOf: [
|
||||||
{ required: ['tokenId'] },
|
{ required: ['tokenId'] },
|
||||||
|
|
|
@ -380,16 +380,26 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
|
|
||||||
const newName = updates.name === undefined ? user.name : updates.name;
|
const newName = updates.name === undefined ? user.name : updates.name;
|
||||||
const newDescription = profileUpdates.description === undefined ? profile.description : profileUpdates.description;
|
const newDescription = profileUpdates.description === undefined ? profile.description : profileUpdates.description;
|
||||||
|
const newFields = profileUpdates.fields === undefined ? profile.fields : profileUpdates.fields;
|
||||||
|
|
||||||
if (newName != null) {
|
if (newName != null) {
|
||||||
const tokens = mfm.parseSimple(newName);
|
const tokens = mfm.parseSimple(newName);
|
||||||
emojis = emojis.concat(extractCustomEmojisFromMfm(tokens!));
|
emojis = emojis.concat(extractCustomEmojisFromMfm(tokens));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newDescription != null) {
|
if (newDescription != null) {
|
||||||
const tokens = mfm.parse(newDescription);
|
const tokens = mfm.parse(newDescription);
|
||||||
emojis = emojis.concat(extractCustomEmojisFromMfm(tokens!));
|
emojis = emojis.concat(extractCustomEmojisFromMfm(tokens));
|
||||||
tags = extractHashtags(tokens!).map(tag => normalizeForSearch(tag)).splice(0, 32);
|
tags = extractHashtags(tokens).map(tag => normalizeForSearch(tag)).splice(0, 32);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const field of newFields) {
|
||||||
|
const nameTokens = mfm.parseSimple(field.name);
|
||||||
|
const valueTokens = mfm.parseSimple(field.value);
|
||||||
|
emojis = emojis.concat([
|
||||||
|
...extractCustomEmojisFromMfm(nameTokens),
|
||||||
|
...extractCustomEmojisFromMfm(valueTokens),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
updates.emojis = emojis;
|
updates.emojis = emojis;
|
||||||
|
|
|
@ -71,6 +71,12 @@ export const meta = {
|
||||||
id: '749ee0f6-d3da-459a-bf02-282e2da4292c',
|
id: '749ee0f6-d3da-459a-bf02-282e2da4292c',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
cannotReplyToInvisibleNote: {
|
||||||
|
message: 'You cannot reply to an invisible Note.',
|
||||||
|
code: 'CANNOT_REPLY_TO_AN_INVISIBLE_NOTE',
|
||||||
|
id: 'b98980fa-3780-406c-a935-b6d0eeee10d1',
|
||||||
|
},
|
||||||
|
|
||||||
cannotReplyToPureRenote: {
|
cannotReplyToPureRenote: {
|
||||||
message: 'You can not reply to a pure Renote.',
|
message: 'You can not reply to a pure Renote.',
|
||||||
code: 'CANNOT_REPLY_TO_A_PURE_RENOTE',
|
code: 'CANNOT_REPLY_TO_A_PURE_RENOTE',
|
||||||
|
@ -277,6 +283,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
throw new ApiError(meta.errors.noSuchReplyTarget);
|
throw new ApiError(meta.errors.noSuchReplyTarget);
|
||||||
} else if (isPureRenote(reply)) {
|
} else if (isPureRenote(reply)) {
|
||||||
throw new ApiError(meta.errors.cannotReplyToPureRenote);
|
throw new ApiError(meta.errors.cannotReplyToPureRenote);
|
||||||
|
} else if (!await this.noteEntityService.isVisibleForMe(reply, me.id)) {
|
||||||
|
throw new ApiError(meta.errors.cannotReplyToInvisibleNote);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check blocking
|
// Check blocking
|
||||||
|
|
|
@ -93,99 +93,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
|
|
||||||
const serverSettings = await this.metaService.fetch();
|
const serverSettings = await this.metaService.fetch();
|
||||||
|
|
||||||
if (serverSettings.enableFanoutTimeline) {
|
if (!serverSettings.enableFanoutTimeline) {
|
||||||
const [
|
|
||||||
userIdsWhoMeMuting,
|
|
||||||
userIdsWhoMeMutingRenotes,
|
|
||||||
userIdsWhoBlockingMe,
|
|
||||||
] = await Promise.all([
|
|
||||||
this.cacheService.userMutingsCache.fetch(me.id),
|
|
||||||
this.cacheService.renoteMutingsCache.fetch(me.id),
|
|
||||||
this.cacheService.userBlockedCache.fetch(me.id),
|
|
||||||
]);
|
|
||||||
|
|
||||||
let noteIds: string[];
|
|
||||||
let shouldFallbackToDb = false;
|
|
||||||
|
|
||||||
if (ps.withFiles) {
|
|
||||||
const [htlNoteIds, ltlNoteIds] = await this.funoutTimelineService.getMulti([
|
|
||||||
`homeTimelineWithFiles:${me.id}`,
|
|
||||||
'localTimelineWithFiles',
|
|
||||||
], untilId, sinceId);
|
|
||||||
noteIds = Array.from(new Set([...htlNoteIds, ...ltlNoteIds]));
|
|
||||||
} else if (ps.withReplies) {
|
|
||||||
const [htlNoteIds, ltlNoteIds, ltlReplyNoteIds] = await this.funoutTimelineService.getMulti([
|
|
||||||
`homeTimeline:${me.id}`,
|
|
||||||
'localTimeline',
|
|
||||||
'localTimelineWithReplies',
|
|
||||||
], untilId, sinceId);
|
|
||||||
noteIds = Array.from(new Set([...htlNoteIds, ...ltlNoteIds, ...ltlReplyNoteIds]));
|
|
||||||
} else {
|
|
||||||
const [htlNoteIds, ltlNoteIds] = await this.funoutTimelineService.getMulti([
|
|
||||||
`homeTimeline:${me.id}`,
|
|
||||||
'localTimeline',
|
|
||||||
], untilId, sinceId);
|
|
||||||
noteIds = Array.from(new Set([...htlNoteIds, ...ltlNoteIds]));
|
|
||||||
shouldFallbackToDb = htlNoteIds.length === 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
noteIds.sort((a, b) => a > b ? -1 : 1);
|
|
||||||
noteIds = noteIds.slice(0, ps.limit);
|
|
||||||
|
|
||||||
shouldFallbackToDb = shouldFallbackToDb || (noteIds.length === 0);
|
|
||||||
|
|
||||||
let redisTimeline: MiNote[] = [];
|
|
||||||
|
|
||||||
if (!shouldFallbackToDb) {
|
|
||||||
const query = this.notesRepository.createQueryBuilder('note')
|
|
||||||
.where('note.id IN (:...noteIds)', { noteIds: noteIds })
|
|
||||||
.innerJoinAndSelect('note.user', 'user')
|
|
||||||
.leftJoinAndSelect('note.reply', 'reply')
|
|
||||||
.leftJoinAndSelect('note.renote', 'renote')
|
|
||||||
.leftJoinAndSelect('reply.user', 'replyUser')
|
|
||||||
.leftJoinAndSelect('renote.user', 'renoteUser')
|
|
||||||
.leftJoinAndSelect('note.channel', 'channel');
|
|
||||||
|
|
||||||
redisTimeline = await query.getMany();
|
|
||||||
|
|
||||||
redisTimeline = redisTimeline.filter(note => {
|
|
||||||
if (note.userId === me.id) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (isUserRelated(note, userIdsWhoBlockingMe)) return false;
|
|
||||||
if (isUserRelated(note, userIdsWhoMeMuting)) return false;
|
|
||||||
if (note.renoteId) {
|
|
||||||
if (note.text == null && note.fileIds.length === 0 && !note.hasPoll) {
|
|
||||||
if (isUserRelated(note, userIdsWhoMeMutingRenotes)) return false;
|
|
||||||
if (ps.withRenotes === false) return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
||||||
redisTimeline.sort((a, b) => a.id > b.id ? -1 : 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (redisTimeline.length > 0) {
|
|
||||||
process.nextTick(() => {
|
|
||||||
this.activeUsersChart.read(me);
|
|
||||||
});
|
|
||||||
|
|
||||||
return await this.noteEntityService.packMany(redisTimeline, me);
|
|
||||||
} else { // fallback to db
|
|
||||||
return await this.getFromDb({
|
|
||||||
untilId,
|
|
||||||
sinceId,
|
|
||||||
limit: ps.limit,
|
|
||||||
includeMyRenotes: ps.includeMyRenotes,
|
|
||||||
includeRenotedMyNotes: ps.includeRenotedMyNotes,
|
|
||||||
includeLocalRenotes: ps.includeLocalRenotes,
|
|
||||||
withFiles: ps.withFiles,
|
|
||||||
withReplies: ps.withReplies,
|
|
||||||
}, me);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return await this.getFromDb({
|
return await this.getFromDb({
|
||||||
untilId,
|
untilId,
|
||||||
sinceId,
|
sinceId,
|
||||||
|
@ -197,6 +105,102 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
withReplies: ps.withReplies,
|
withReplies: ps.withReplies,
|
||||||
}, me);
|
}, me);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const [
|
||||||
|
userIdsWhoMeMuting,
|
||||||
|
userIdsWhoMeMutingRenotes,
|
||||||
|
userIdsWhoBlockingMe,
|
||||||
|
] = await Promise.all([
|
||||||
|
this.cacheService.userMutingsCache.fetch(me.id),
|
||||||
|
this.cacheService.renoteMutingsCache.fetch(me.id),
|
||||||
|
this.cacheService.userBlockedCache.fetch(me.id),
|
||||||
|
]);
|
||||||
|
|
||||||
|
let noteIds: string[];
|
||||||
|
let shouldFallbackToDb = false;
|
||||||
|
|
||||||
|
if (ps.withFiles) {
|
||||||
|
const [htlNoteIds, ltlNoteIds] = await this.funoutTimelineService.getMulti([
|
||||||
|
`homeTimelineWithFiles:${me.id}`,
|
||||||
|
'localTimelineWithFiles',
|
||||||
|
], untilId, sinceId);
|
||||||
|
noteIds = Array.from(new Set([...htlNoteIds, ...ltlNoteIds]));
|
||||||
|
} else if (ps.withReplies) {
|
||||||
|
const [htlNoteIds, ltlNoteIds, ltlReplyNoteIds] = await this.funoutTimelineService.getMulti([
|
||||||
|
`homeTimeline:${me.id}`,
|
||||||
|
'localTimeline',
|
||||||
|
'localTimelineWithReplies',
|
||||||
|
], untilId, sinceId);
|
||||||
|
noteIds = Array.from(new Set([...htlNoteIds, ...ltlNoteIds, ...ltlReplyNoteIds]));
|
||||||
|
} else {
|
||||||
|
const [htlNoteIds, ltlNoteIds] = await this.funoutTimelineService.getMulti([
|
||||||
|
`homeTimeline:${me.id}`,
|
||||||
|
'localTimeline',
|
||||||
|
], untilId, sinceId);
|
||||||
|
noteIds = Array.from(new Set([...htlNoteIds, ...ltlNoteIds]));
|
||||||
|
shouldFallbackToDb = htlNoteIds.length === 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
noteIds.sort((a, b) => a > b ? -1 : 1);
|
||||||
|
noteIds = noteIds.slice(0, ps.limit);
|
||||||
|
|
||||||
|
shouldFallbackToDb = shouldFallbackToDb || (noteIds.length === 0);
|
||||||
|
|
||||||
|
let redisTimeline: MiNote[] = [];
|
||||||
|
|
||||||
|
if (!shouldFallbackToDb) {
|
||||||
|
const query = this.notesRepository.createQueryBuilder('note')
|
||||||
|
.where('note.id IN (:...noteIds)', { noteIds: noteIds })
|
||||||
|
.innerJoinAndSelect('note.user', 'user')
|
||||||
|
.leftJoinAndSelect('note.reply', 'reply')
|
||||||
|
.leftJoinAndSelect('note.renote', 'renote')
|
||||||
|
.leftJoinAndSelect('reply.user', 'replyUser')
|
||||||
|
.leftJoinAndSelect('renote.user', 'renoteUser')
|
||||||
|
.leftJoinAndSelect('note.channel', 'channel');
|
||||||
|
|
||||||
|
redisTimeline = await query.getMany();
|
||||||
|
|
||||||
|
redisTimeline = redisTimeline.filter(note => {
|
||||||
|
if (note.userId === me.id) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (isUserRelated(note, userIdsWhoBlockingMe)) return false;
|
||||||
|
if (isUserRelated(note, userIdsWhoMeMuting)) return false;
|
||||||
|
if (note.renoteId) {
|
||||||
|
if (note.text == null && note.fileIds.length === 0 && !note.hasPoll) {
|
||||||
|
if (isUserRelated(note, userIdsWhoMeMutingRenotes)) return false;
|
||||||
|
if (ps.withRenotes === false) return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
redisTimeline.sort((a, b) => a.id > b.id ? -1 : 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (redisTimeline.length > 0) {
|
||||||
|
process.nextTick(() => {
|
||||||
|
this.activeUsersChart.read(me);
|
||||||
|
});
|
||||||
|
|
||||||
|
return await this.noteEntityService.packMany(redisTimeline, me);
|
||||||
|
} else {
|
||||||
|
if (serverSettings.enableFanoutTimelineDbFallback) { // fallback to db
|
||||||
|
return await this.getFromDb({
|
||||||
|
untilId,
|
||||||
|
sinceId,
|
||||||
|
limit: ps.limit,
|
||||||
|
includeMyRenotes: ps.includeMyRenotes,
|
||||||
|
includeRenotedMyNotes: ps.includeRenotedMyNotes,
|
||||||
|
includeLocalRenotes: ps.includeLocalRenotes,
|
||||||
|
withFiles: ps.withFiles,
|
||||||
|
withReplies: ps.withReplies,
|
||||||
|
}, me);
|
||||||
|
} else {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -84,84 +84,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
|
|
||||||
const serverSettings = await this.metaService.fetch();
|
const serverSettings = await this.metaService.fetch();
|
||||||
|
|
||||||
if (serverSettings.enableFanoutTimeline) {
|
if (!serverSettings.enableFanoutTimeline) {
|
||||||
const [
|
|
||||||
userIdsWhoMeMuting,
|
|
||||||
userIdsWhoMeMutingRenotes,
|
|
||||||
userIdsWhoBlockingMe,
|
|
||||||
] = me ? await Promise.all([
|
|
||||||
this.cacheService.userMutingsCache.fetch(me.id),
|
|
||||||
this.cacheService.renoteMutingsCache.fetch(me.id),
|
|
||||||
this.cacheService.userBlockedCache.fetch(me.id),
|
|
||||||
]) : [new Set<string>(), new Set<string>(), new Set<string>()];
|
|
||||||
|
|
||||||
let noteIds: string[];
|
|
||||||
|
|
||||||
if (ps.withFiles) {
|
|
||||||
noteIds = await this.funoutTimelineService.get('localTimelineWithFiles', untilId, sinceId);
|
|
||||||
} else {
|
|
||||||
const [nonReplyNoteIds, replyNoteIds] = await this.funoutTimelineService.getMulti([
|
|
||||||
'localTimeline',
|
|
||||||
'localTimelineWithReplies',
|
|
||||||
], untilId, sinceId);
|
|
||||||
noteIds = Array.from(new Set([...nonReplyNoteIds, ...replyNoteIds]));
|
|
||||||
noteIds.sort((a, b) => a > b ? -1 : 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
noteIds = noteIds.slice(0, ps.limit);
|
|
||||||
|
|
||||||
let redisTimeline: MiNote[] = [];
|
|
||||||
|
|
||||||
if (noteIds.length > 0) {
|
|
||||||
const query = this.notesRepository.createQueryBuilder('note')
|
|
||||||
.where('note.id IN (:...noteIds)', { noteIds: noteIds })
|
|
||||||
.innerJoinAndSelect('note.user', 'user')
|
|
||||||
.leftJoinAndSelect('note.reply', 'reply')
|
|
||||||
.leftJoinAndSelect('note.renote', 'renote')
|
|
||||||
.leftJoinAndSelect('reply.user', 'replyUser')
|
|
||||||
.leftJoinAndSelect('renote.user', 'renoteUser')
|
|
||||||
.leftJoinAndSelect('note.channel', 'channel');
|
|
||||||
|
|
||||||
redisTimeline = await query.getMany();
|
|
||||||
|
|
||||||
redisTimeline = redisTimeline.filter(note => {
|
|
||||||
if (me && (note.userId === me.id)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (!ps.withReplies && note.replyId && note.replyUserId !== note.userId && (me == null || note.replyUserId !== me.id)) return false;
|
|
||||||
if (me && isUserRelated(note, userIdsWhoBlockingMe)) return false;
|
|
||||||
if (me && isUserRelated(note, userIdsWhoMeMuting)) return false;
|
|
||||||
if (note.renoteId) {
|
|
||||||
if (note.text == null && note.fileIds.length === 0 && !note.hasPoll) {
|
|
||||||
if (me && isUserRelated(note, userIdsWhoMeMutingRenotes)) return false;
|
|
||||||
if (ps.withRenotes === false) return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
||||||
redisTimeline.sort((a, b) => a.id > b.id ? -1 : 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (redisTimeline.length > 0) {
|
|
||||||
process.nextTick(() => {
|
|
||||||
if (me) {
|
|
||||||
this.activeUsersChart.read(me);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return await this.noteEntityService.packMany(redisTimeline, me);
|
|
||||||
} else { // fallback to db
|
|
||||||
return await this.getFromDb({
|
|
||||||
untilId,
|
|
||||||
sinceId,
|
|
||||||
limit: ps.limit,
|
|
||||||
withFiles: ps.withFiles,
|
|
||||||
withReplies: ps.withReplies,
|
|
||||||
}, me);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return await this.getFromDb({
|
return await this.getFromDb({
|
||||||
untilId,
|
untilId,
|
||||||
sinceId,
|
sinceId,
|
||||||
|
@ -170,6 +93,87 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
withReplies: ps.withReplies,
|
withReplies: ps.withReplies,
|
||||||
}, me);
|
}, me);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const [
|
||||||
|
userIdsWhoMeMuting,
|
||||||
|
userIdsWhoMeMutingRenotes,
|
||||||
|
userIdsWhoBlockingMe,
|
||||||
|
] = me ? await Promise.all([
|
||||||
|
this.cacheService.userMutingsCache.fetch(me.id),
|
||||||
|
this.cacheService.renoteMutingsCache.fetch(me.id),
|
||||||
|
this.cacheService.userBlockedCache.fetch(me.id),
|
||||||
|
]) : [new Set<string>(), new Set<string>(), new Set<string>()];
|
||||||
|
|
||||||
|
let noteIds: string[];
|
||||||
|
|
||||||
|
if (ps.withFiles) {
|
||||||
|
noteIds = await this.funoutTimelineService.get('localTimelineWithFiles', untilId, sinceId);
|
||||||
|
} else {
|
||||||
|
const [nonReplyNoteIds, replyNoteIds] = await this.funoutTimelineService.getMulti([
|
||||||
|
'localTimeline',
|
||||||
|
'localTimelineWithReplies',
|
||||||
|
], untilId, sinceId);
|
||||||
|
noteIds = Array.from(new Set([...nonReplyNoteIds, ...replyNoteIds]));
|
||||||
|
noteIds.sort((a, b) => a > b ? -1 : 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
noteIds = noteIds.slice(0, ps.limit);
|
||||||
|
|
||||||
|
let redisTimeline: MiNote[] = [];
|
||||||
|
|
||||||
|
if (noteIds.length > 0) {
|
||||||
|
const query = this.notesRepository.createQueryBuilder('note')
|
||||||
|
.where('note.id IN (:...noteIds)', { noteIds: noteIds })
|
||||||
|
.innerJoinAndSelect('note.user', 'user')
|
||||||
|
.leftJoinAndSelect('note.reply', 'reply')
|
||||||
|
.leftJoinAndSelect('note.renote', 'renote')
|
||||||
|
.leftJoinAndSelect('reply.user', 'replyUser')
|
||||||
|
.leftJoinAndSelect('renote.user', 'renoteUser')
|
||||||
|
.leftJoinAndSelect('note.channel', 'channel');
|
||||||
|
|
||||||
|
redisTimeline = await query.getMany();
|
||||||
|
|
||||||
|
redisTimeline = redisTimeline.filter(note => {
|
||||||
|
if (me && (note.userId === me.id)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!ps.withReplies && note.replyId && note.replyUserId !== note.userId && (me == null || note.replyUserId !== me.id)) return false;
|
||||||
|
if (me && isUserRelated(note, userIdsWhoBlockingMe)) return false;
|
||||||
|
if (me && isUserRelated(note, userIdsWhoMeMuting)) return false;
|
||||||
|
if (note.renoteId) {
|
||||||
|
if (note.text == null && note.fileIds.length === 0 && !note.hasPoll) {
|
||||||
|
if (me && isUserRelated(note, userIdsWhoMeMutingRenotes)) return false;
|
||||||
|
if (ps.withRenotes === false) return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
redisTimeline.sort((a, b) => a.id > b.id ? -1 : 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (redisTimeline.length > 0) {
|
||||||
|
process.nextTick(() => {
|
||||||
|
if (me) {
|
||||||
|
this.activeUsersChart.read(me);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return await this.noteEntityService.packMany(redisTimeline, me);
|
||||||
|
} else {
|
||||||
|
if (serverSettings.enableFanoutTimelineDbFallback) { // fallback to db
|
||||||
|
return await this.getFromDb({
|
||||||
|
untilId,
|
||||||
|
sinceId,
|
||||||
|
limit: ps.limit,
|
||||||
|
withFiles: ps.withFiles,
|
||||||
|
withReplies: ps.withReplies,
|
||||||
|
}, me);
|
||||||
|
} else {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,7 +186,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
}, me: MiLocalUser | null) {
|
}, me: MiLocalUser | null) {
|
||||||
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'),
|
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'),
|
||||||
ps.sinceId, ps.untilId)
|
ps.sinceId, ps.untilId)
|
||||||
.andWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)')
|
.andWhere('(note.visibility = \'public\') AND (note.userHost IS NULL) AND (note.channelId IS NULL)')
|
||||||
.innerJoinAndSelect('note.user', 'user')
|
.innerJoinAndSelect('note.user', 'user')
|
||||||
.leftJoinAndSelect('note.reply', 'reply')
|
.leftJoinAndSelect('note.reply', 'reply')
|
||||||
.leftJoinAndSelect('note.renote', 'renote')
|
.leftJoinAndSelect('note.renote', 'renote')
|
||||||
|
|
|
@ -76,77 +76,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
|
|
||||||
const serverSettings = await this.metaService.fetch();
|
const serverSettings = await this.metaService.fetch();
|
||||||
|
|
||||||
if (serverSettings.enableFanoutTimeline) {
|
if (!serverSettings.enableFanoutTimeline) {
|
||||||
const [
|
|
||||||
followings,
|
|
||||||
userIdsWhoMeMuting,
|
|
||||||
userIdsWhoMeMutingRenotes,
|
|
||||||
userIdsWhoBlockingMe,
|
|
||||||
] = await Promise.all([
|
|
||||||
this.cacheService.userFollowingsCache.fetch(me.id),
|
|
||||||
this.cacheService.userMutingsCache.fetch(me.id),
|
|
||||||
this.cacheService.renoteMutingsCache.fetch(me.id),
|
|
||||||
this.cacheService.userBlockedCache.fetch(me.id),
|
|
||||||
]);
|
|
||||||
|
|
||||||
let noteIds = await this.funoutTimelineService.get(ps.withFiles ? `homeTimelineWithFiles:${me.id}` : `homeTimeline:${me.id}`, untilId, sinceId);
|
|
||||||
noteIds = noteIds.slice(0, ps.limit);
|
|
||||||
|
|
||||||
let redisTimeline: MiNote[] = [];
|
|
||||||
|
|
||||||
if (noteIds.length > 0) {
|
|
||||||
const query = this.notesRepository.createQueryBuilder('note')
|
|
||||||
.where('note.id IN (:...noteIds)', { noteIds: noteIds })
|
|
||||||
.innerJoinAndSelect('note.user', 'user')
|
|
||||||
.leftJoinAndSelect('note.reply', 'reply')
|
|
||||||
.leftJoinAndSelect('note.renote', 'renote')
|
|
||||||
.leftJoinAndSelect('reply.user', 'replyUser')
|
|
||||||
.leftJoinAndSelect('renote.user', 'renoteUser')
|
|
||||||
.leftJoinAndSelect('note.channel', 'channel');
|
|
||||||
|
|
||||||
redisTimeline = await query.getMany();
|
|
||||||
|
|
||||||
redisTimeline = redisTimeline.filter(note => {
|
|
||||||
if (note.userId === me.id) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (isUserRelated(note, userIdsWhoBlockingMe)) return false;
|
|
||||||
if (isUserRelated(note, userIdsWhoMeMuting)) return false;
|
|
||||||
if (note.renoteId) {
|
|
||||||
if (note.text == null && note.fileIds.length === 0 && !note.hasPoll) {
|
|
||||||
if (isUserRelated(note, userIdsWhoMeMutingRenotes)) return false;
|
|
||||||
if (ps.withRenotes === false) return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (note.reply && note.reply.visibility === 'followers') {
|
|
||||||
if (!Object.hasOwn(followings, note.reply.userId)) return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
||||||
redisTimeline.sort((a, b) => a.id > b.id ? -1 : 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (redisTimeline.length > 0) {
|
|
||||||
process.nextTick(() => {
|
|
||||||
this.activeUsersChart.read(me);
|
|
||||||
});
|
|
||||||
|
|
||||||
return await this.noteEntityService.packMany(redisTimeline, me);
|
|
||||||
} else { // fallback to db
|
|
||||||
return await this.getFromDb({
|
|
||||||
untilId,
|
|
||||||
sinceId,
|
|
||||||
limit: ps.limit,
|
|
||||||
includeMyRenotes: ps.includeMyRenotes,
|
|
||||||
includeRenotedMyNotes: ps.includeRenotedMyNotes,
|
|
||||||
includeLocalRenotes: ps.includeLocalRenotes,
|
|
||||||
withFiles: ps.withFiles,
|
|
||||||
withRenotes: ps.withRenotes,
|
|
||||||
}, me);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return await this.getFromDb({
|
return await this.getFromDb({
|
||||||
untilId,
|
untilId,
|
||||||
sinceId,
|
sinceId,
|
||||||
|
@ -158,6 +88,80 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
withRenotes: ps.withRenotes,
|
withRenotes: ps.withRenotes,
|
||||||
}, me);
|
}, me);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const [
|
||||||
|
followings,
|
||||||
|
userIdsWhoMeMuting,
|
||||||
|
userIdsWhoMeMutingRenotes,
|
||||||
|
userIdsWhoBlockingMe,
|
||||||
|
] = await Promise.all([
|
||||||
|
this.cacheService.userFollowingsCache.fetch(me.id),
|
||||||
|
this.cacheService.userMutingsCache.fetch(me.id),
|
||||||
|
this.cacheService.renoteMutingsCache.fetch(me.id),
|
||||||
|
this.cacheService.userBlockedCache.fetch(me.id),
|
||||||
|
]);
|
||||||
|
|
||||||
|
let noteIds = await this.funoutTimelineService.get(ps.withFiles ? `homeTimelineWithFiles:${me.id}` : `homeTimeline:${me.id}`, untilId, sinceId);
|
||||||
|
noteIds = noteIds.slice(0, ps.limit);
|
||||||
|
|
||||||
|
let redisTimeline: MiNote[] = [];
|
||||||
|
|
||||||
|
if (noteIds.length > 0) {
|
||||||
|
const query = this.notesRepository.createQueryBuilder('note')
|
||||||
|
.where('note.id IN (:...noteIds)', { noteIds: noteIds })
|
||||||
|
.innerJoinAndSelect('note.user', 'user')
|
||||||
|
.leftJoinAndSelect('note.reply', 'reply')
|
||||||
|
.leftJoinAndSelect('note.renote', 'renote')
|
||||||
|
.leftJoinAndSelect('reply.user', 'replyUser')
|
||||||
|
.leftJoinAndSelect('renote.user', 'renoteUser')
|
||||||
|
.leftJoinAndSelect('note.channel', 'channel');
|
||||||
|
|
||||||
|
redisTimeline = await query.getMany();
|
||||||
|
|
||||||
|
redisTimeline = redisTimeline.filter(note => {
|
||||||
|
if (note.userId === me.id) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (isUserRelated(note, userIdsWhoBlockingMe)) return false;
|
||||||
|
if (isUserRelated(note, userIdsWhoMeMuting)) return false;
|
||||||
|
if (note.renoteId) {
|
||||||
|
if (note.text == null && note.fileIds.length === 0 && !note.hasPoll) {
|
||||||
|
if (isUserRelated(note, userIdsWhoMeMutingRenotes)) return false;
|
||||||
|
if (ps.withRenotes === false) return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (note.reply && note.reply.visibility === 'followers') {
|
||||||
|
if (!Object.hasOwn(followings, note.reply.userId)) return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
redisTimeline.sort((a, b) => a.id > b.id ? -1 : 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (redisTimeline.length > 0) {
|
||||||
|
process.nextTick(() => {
|
||||||
|
this.activeUsersChart.read(me);
|
||||||
|
});
|
||||||
|
|
||||||
|
return await this.noteEntityService.packMany(redisTimeline, me);
|
||||||
|
} else {
|
||||||
|
if (serverSettings.enableFanoutTimelineDbFallback) { // fallback to db
|
||||||
|
return await this.getFromDb({
|
||||||
|
untilId,
|
||||||
|
sinceId,
|
||||||
|
limit: ps.limit,
|
||||||
|
includeMyRenotes: ps.includeMyRenotes,
|
||||||
|
includeRenotedMyNotes: ps.includeRenotedMyNotes,
|
||||||
|
includeLocalRenotes: ps.includeLocalRenotes,
|
||||||
|
withFiles: ps.withFiles,
|
||||||
|
withRenotes: ps.withRenotes,
|
||||||
|
}, me);
|
||||||
|
} else {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import type { MiNote, NotesRepository, UserListMembershipsRepository, UserListsRepository } from '@/models/_.js';
|
import { Brackets } from 'typeorm';
|
||||||
|
import type { MiNote, MiUserList, NotesRepository, UserListMembershipsRepository, UserListsRepository } from '@/models/_.js';
|
||||||
import { Endpoint } from '@/server/api/endpoint-base.js';
|
import { Endpoint } from '@/server/api/endpoint-base.js';
|
||||||
import { NoteEntityService } from '@/core/entities/NoteEntityService.js';
|
import { NoteEntityService } from '@/core/entities/NoteEntityService.js';
|
||||||
import ActiveUsersChart from '@/core/chart/charts/active-users.js';
|
import ActiveUsersChart from '@/core/chart/charts/active-users.js';
|
||||||
|
@ -14,8 +15,9 @@ import { IdService } from '@/core/IdService.js';
|
||||||
import { isUserRelated } from '@/misc/is-user-related.js';
|
import { isUserRelated } from '@/misc/is-user-related.js';
|
||||||
import { FunoutTimelineService } from '@/core/FunoutTimelineService.js';
|
import { FunoutTimelineService } from '@/core/FunoutTimelineService.js';
|
||||||
import { QueryService } from '@/core/QueryService.js';
|
import { QueryService } from '@/core/QueryService.js';
|
||||||
|
import { MiLocalUser } from '@/models/User.js';
|
||||||
|
import { MetaService } from '@/core/MetaService.js';
|
||||||
import { ApiError } from '../../error.js';
|
import { ApiError } from '../../error.js';
|
||||||
import { Brackets } from 'typeorm';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['notes', 'lists'],
|
tags: ['notes', 'lists'],
|
||||||
|
@ -81,7 +83,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
private idService: IdService,
|
private idService: IdService,
|
||||||
private funoutTimelineService: FunoutTimelineService,
|
private funoutTimelineService: FunoutTimelineService,
|
||||||
private queryService: QueryService,
|
private queryService: QueryService,
|
||||||
|
private metaService: MetaService,
|
||||||
) {
|
) {
|
||||||
super(meta, paramDef, async (ps, me) => {
|
super(meta, paramDef, async (ps, me) => {
|
||||||
const untilId = ps.untilId ?? (ps.untilDate ? this.idService.gen(ps.untilDate!) : null);
|
const untilId = ps.untilId ?? (ps.untilDate ? this.idService.gen(ps.untilDate!) : null);
|
||||||
|
@ -96,6 +98,21 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
throw new ApiError(meta.errors.noSuchList);
|
throw new ApiError(meta.errors.noSuchList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const serverSettings = await this.metaService.fetch();
|
||||||
|
|
||||||
|
if (!serverSettings.enableFanoutTimeline) {
|
||||||
|
return await this.getFromDb(list, {
|
||||||
|
untilId,
|
||||||
|
sinceId,
|
||||||
|
limit: ps.limit,
|
||||||
|
includeMyRenotes: ps.includeMyRenotes,
|
||||||
|
includeRenotedMyNotes: ps.includeRenotedMyNotes,
|
||||||
|
includeLocalRenotes: ps.includeLocalRenotes,
|
||||||
|
withFiles: ps.withFiles,
|
||||||
|
withRenotes: ps.withRenotes,
|
||||||
|
}, me);
|
||||||
|
}
|
||||||
|
|
||||||
const [
|
const [
|
||||||
userIdsWhoMeMuting,
|
userIdsWhoMeMuting,
|
||||||
userIdsWhoMeMutingRenotes,
|
userIdsWhoMeMutingRenotes,
|
||||||
|
@ -145,93 +162,119 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
if (redisTimeline.length > 0) {
|
if (redisTimeline.length > 0) {
|
||||||
this.activeUsersChart.read(me);
|
this.activeUsersChart.read(me);
|
||||||
return await this.noteEntityService.packMany(redisTimeline, me);
|
return await this.noteEntityService.packMany(redisTimeline, me);
|
||||||
} else { // fallback to db
|
} else {
|
||||||
//#region Construct query
|
if (serverSettings.enableFanoutTimelineDbFallback) { // fallback to db
|
||||||
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'), ps.sinceId, ps.untilId)
|
return await this.getFromDb(list, {
|
||||||
.innerJoin(this.userListMembershipsRepository.metadata.targetName, 'userListMemberships', 'userListMemberships.userId = note.userId')
|
untilId,
|
||||||
.innerJoinAndSelect('note.user', 'user')
|
sinceId,
|
||||||
.leftJoinAndSelect('note.reply', 'reply')
|
limit: ps.limit,
|
||||||
.leftJoinAndSelect('note.renote', 'renote')
|
includeMyRenotes: ps.includeMyRenotes,
|
||||||
.leftJoinAndSelect('reply.user', 'replyUser')
|
includeRenotedMyNotes: ps.includeRenotedMyNotes,
|
||||||
.leftJoinAndSelect('renote.user', 'renoteUser')
|
includeLocalRenotes: ps.includeLocalRenotes,
|
||||||
.andWhere('userListMemberships.userListId = :userListId', { userListId: list.id })
|
withFiles: ps.withFiles,
|
||||||
.andWhere('note.channelId IS NULL') // チャンネルノートではない
|
withRenotes: ps.withRenotes,
|
||||||
.andWhere(new Brackets(qb => {
|
}, me);
|
||||||
qb
|
} else {
|
||||||
.where('note.replyId IS NULL') // 返信ではない
|
return [];
|
||||||
.orWhere(new Brackets(qb => {
|
|
||||||
qb // 返信だけど投稿者自身への返信
|
|
||||||
.where('note.replyId IS NOT NULL')
|
|
||||||
.andWhere('note.replyUserId = note.userId');
|
|
||||||
}))
|
|
||||||
.orWhere(new Brackets(qb => {
|
|
||||||
qb // 返信だけど自分宛ての返信
|
|
||||||
.where('note.replyId IS NOT NULL')
|
|
||||||
.andWhere('note.replyUserId = :meId', { meId: me.id });
|
|
||||||
}))
|
|
||||||
.orWhere(new Brackets(qb => {
|
|
||||||
qb // 返信だけどwithRepliesがtrueの場合
|
|
||||||
.where('note.replyId IS NOT NULL')
|
|
||||||
.andWhere('userListMemberships.withReplies = true');
|
|
||||||
}));
|
|
||||||
}));
|
|
||||||
|
|
||||||
this.queryService.generateVisibilityQuery(query, me);
|
|
||||||
this.queryService.generateMutedUserQuery(query, me);
|
|
||||||
this.queryService.generateBlockedUserQuery(query, me);
|
|
||||||
this.queryService.generateMutedUserRenotesQueryForNotes(query, me);
|
|
||||||
|
|
||||||
if (ps.includeMyRenotes === false) {
|
|
||||||
query.andWhere(new Brackets(qb => {
|
|
||||||
qb.orWhere('note.userId != :meId', { meId: me.id });
|
|
||||||
qb.orWhere('note.renoteId IS NULL');
|
|
||||||
qb.orWhere('note.text IS NOT NULL');
|
|
||||||
qb.orWhere('note.fileIds != \'{}\'');
|
|
||||||
qb.orWhere('0 < (SELECT COUNT(*) FROM poll WHERE poll."noteId" = note.id)');
|
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ps.includeRenotedMyNotes === false) {
|
|
||||||
query.andWhere(new Brackets(qb => {
|
|
||||||
qb.orWhere('note.renoteUserId != :meId', { meId: me.id });
|
|
||||||
qb.orWhere('note.renoteId IS NULL');
|
|
||||||
qb.orWhere('note.text IS NOT NULL');
|
|
||||||
qb.orWhere('note.fileIds != \'{}\'');
|
|
||||||
qb.orWhere('0 < (SELECT COUNT(*) FROM poll WHERE poll."noteId" = note.id)');
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ps.includeLocalRenotes === false) {
|
|
||||||
query.andWhere(new Brackets(qb => {
|
|
||||||
qb.orWhere('note.renoteUserHost IS NOT NULL');
|
|
||||||
qb.orWhere('note.renoteId IS NULL');
|
|
||||||
qb.orWhere('note.text IS NOT NULL');
|
|
||||||
qb.orWhere('note.fileIds != \'{}\'');
|
|
||||||
qb.orWhere('0 < (SELECT COUNT(*) FROM poll WHERE poll."noteId" = note.id)');
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ps.withRenotes === false) {
|
|
||||||
query.andWhere(new Brackets(qb => {
|
|
||||||
qb.orWhere('note.renoteId IS NULL');
|
|
||||||
qb.orWhere(new Brackets(qb => {
|
|
||||||
qb.orWhere('note.text IS NOT NULL');
|
|
||||||
qb.orWhere('note.fileIds != \'{}\'');
|
|
||||||
}));
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ps.withFiles) {
|
|
||||||
query.andWhere('note.fileIds != \'{}\'');
|
|
||||||
}
|
|
||||||
//#endregion
|
|
||||||
|
|
||||||
const timeline = await query.limit(ps.limit).getMany();
|
|
||||||
|
|
||||||
this.activeUsersChart.read(me);
|
|
||||||
|
|
||||||
return await this.noteEntityService.packMany(timeline, me);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async getFromDb(list: MiUserList, ps: {
|
||||||
|
untilId: string | null,
|
||||||
|
sinceId: string | null,
|
||||||
|
limit: number,
|
||||||
|
includeMyRenotes: boolean,
|
||||||
|
includeRenotedMyNotes: boolean,
|
||||||
|
includeLocalRenotes: boolean,
|
||||||
|
withFiles: boolean,
|
||||||
|
withRenotes: boolean,
|
||||||
|
}, me: MiLocalUser) {
|
||||||
|
//#region Construct query
|
||||||
|
const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'), ps.sinceId, ps.untilId)
|
||||||
|
.innerJoin(this.userListMembershipsRepository.metadata.targetName, 'userListMemberships', 'userListMemberships.userId = note.userId')
|
||||||
|
.innerJoinAndSelect('note.user', 'user')
|
||||||
|
.leftJoinAndSelect('note.reply', 'reply')
|
||||||
|
.leftJoinAndSelect('note.renote', 'renote')
|
||||||
|
.leftJoinAndSelect('reply.user', 'replyUser')
|
||||||
|
.leftJoinAndSelect('renote.user', 'renoteUser')
|
||||||
|
.andWhere('userListMemberships.userListId = :userListId', { userListId: list.id })
|
||||||
|
.andWhere('note.channelId IS NULL') // チャンネルノートではない
|
||||||
|
.andWhere(new Brackets(qb => {
|
||||||
|
qb
|
||||||
|
.where('note.replyId IS NULL') // 返信ではない
|
||||||
|
.orWhere(new Brackets(qb => {
|
||||||
|
qb // 返信だけど投稿者自身への返信
|
||||||
|
.where('note.replyId IS NOT NULL')
|
||||||
|
.andWhere('note.replyUserId = note.userId');
|
||||||
|
}))
|
||||||
|
.orWhere(new Brackets(qb => {
|
||||||
|
qb // 返信だけど自分宛ての返信
|
||||||
|
.where('note.replyId IS NOT NULL')
|
||||||
|
.andWhere('note.replyUserId = :meId', { meId: me.id });
|
||||||
|
}))
|
||||||
|
.orWhere(new Brackets(qb => {
|
||||||
|
qb // 返信だけどwithRepliesがtrueの場合
|
||||||
|
.where('note.replyId IS NOT NULL')
|
||||||
|
.andWhere('userListMemberships.withReplies = true');
|
||||||
|
}));
|
||||||
|
}));
|
||||||
|
|
||||||
|
this.queryService.generateVisibilityQuery(query, me);
|
||||||
|
this.queryService.generateMutedUserQuery(query, me);
|
||||||
|
this.queryService.generateBlockedUserQuery(query, me);
|
||||||
|
this.queryService.generateMutedUserRenotesQueryForNotes(query, me);
|
||||||
|
|
||||||
|
if (ps.includeMyRenotes === false) {
|
||||||
|
query.andWhere(new Brackets(qb => {
|
||||||
|
qb.orWhere('note.userId != :meId', { meId: me.id });
|
||||||
|
qb.orWhere('note.renoteId IS NULL');
|
||||||
|
qb.orWhere('note.text IS NOT NULL');
|
||||||
|
qb.orWhere('note.fileIds != \'{}\'');
|
||||||
|
qb.orWhere('0 < (SELECT COUNT(*) FROM poll WHERE poll."noteId" = note.id)');
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ps.includeRenotedMyNotes === false) {
|
||||||
|
query.andWhere(new Brackets(qb => {
|
||||||
|
qb.orWhere('note.renoteUserId != :meId', { meId: me.id });
|
||||||
|
qb.orWhere('note.renoteId IS NULL');
|
||||||
|
qb.orWhere('note.text IS NOT NULL');
|
||||||
|
qb.orWhere('note.fileIds != \'{}\'');
|
||||||
|
qb.orWhere('0 < (SELECT COUNT(*) FROM poll WHERE poll."noteId" = note.id)');
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ps.includeLocalRenotes === false) {
|
||||||
|
query.andWhere(new Brackets(qb => {
|
||||||
|
qb.orWhere('note.renoteUserHost IS NOT NULL');
|
||||||
|
qb.orWhere('note.renoteId IS NULL');
|
||||||
|
qb.orWhere('note.text IS NOT NULL');
|
||||||
|
qb.orWhere('note.fileIds != \'{}\'');
|
||||||
|
qb.orWhere('0 < (SELECT COUNT(*) FROM poll WHERE poll."noteId" = note.id)');
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ps.withRenotes === false) {
|
||||||
|
query.andWhere(new Brackets(qb => {
|
||||||
|
qb.orWhere('note.renoteId IS NULL');
|
||||||
|
qb.orWhere(new Brackets(qb => {
|
||||||
|
qb.orWhere('note.text IS NOT NULL');
|
||||||
|
qb.orWhere('note.fileIds != \'{}\'');
|
||||||
|
}));
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ps.withFiles) {
|
||||||
|
query.andWhere('note.fileIds != \'{}\'');
|
||||||
|
}
|
||||||
|
//#endregion
|
||||||
|
|
||||||
|
const timeline = await query.limit(ps.limit).getMany();
|
||||||
|
|
||||||
|
this.activeUsersChart.read(me);
|
||||||
|
|
||||||
|
return await this.noteEntityService.packMany(timeline, me);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,6 @@ export const paramDef = {
|
||||||
untilId: { type: 'string', format: 'misskey:id' },
|
untilId: { type: 'string', format: 'misskey:id' },
|
||||||
sinceDate: { type: 'integer' },
|
sinceDate: { type: 'integer' },
|
||||||
untilDate: { type: 'integer' },
|
untilDate: { type: 'integer' },
|
||||||
includeMyRenotes: { type: 'boolean', default: true },
|
|
||||||
withFiles: { type: 'boolean', default: false },
|
withFiles: { type: 'boolean', default: false },
|
||||||
excludeNsfw: { type: 'boolean', default: false },
|
excludeNsfw: { type: 'boolean', default: false },
|
||||||
},
|
},
|
||||||
|
@ -169,7 +168,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
query.andWhere('note.fileIds != \'{}\'');
|
query.andWhere('note.fileIds != \'{}\'');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ps.includeMyRenotes === false) {
|
if (ps.withRenotes === false) {
|
||||||
query.andWhere(new Brackets(qb => {
|
query.andWhere(new Brackets(qb => {
|
||||||
qb.orWhere('note.userId != :userId', { userId: ps.userId });
|
qb.orWhere('note.userId != :userId', { userId: ps.userId });
|
||||||
qb.orWhere('note.renoteId IS NULL');
|
qb.orWhere('note.renoteId IS NULL');
|
||||||
|
|
|
@ -52,7 +52,7 @@ class LocalTimelineChannel extends Channel {
|
||||||
|
|
||||||
if (note.user.host !== null) return;
|
if (note.user.host !== null) return;
|
||||||
if (note.visibility !== 'public') return;
|
if (note.visibility !== 'public') return;
|
||||||
if (note.channelId != null && !this.followingChannels.has(note.channelId)) return;
|
if (note.channelId != null) return;
|
||||||
|
|
||||||
// ファイルを含まない投稿は除外
|
// ファイルを含まない投稿は除外
|
||||||
if (this.withFiles && (note.files === undefined || note.files.length === 0)) return;
|
if (this.withFiles && (note.files === undefined || note.files.length === 0)) return;
|
||||||
|
|
|
@ -176,6 +176,7 @@ export class ClientServerService {
|
||||||
serverErrorImageUrl: meta.serverErrorImageUrl ?? 'https://xn--931a.moe/assets/error.jpg',
|
serverErrorImageUrl: meta.serverErrorImageUrl ?? 'https://xn--931a.moe/assets/error.jpg',
|
||||||
infoImageUrl: meta.infoImageUrl ?? 'https://xn--931a.moe/assets/info.jpg',
|
infoImageUrl: meta.infoImageUrl ?? 'https://xn--931a.moe/assets/info.jpg',
|
||||||
notFoundImageUrl: meta.notFoundImageUrl ?? 'https://xn--931a.moe/assets/not-found.jpg',
|
notFoundImageUrl: meta.notFoundImageUrl ?? 'https://xn--931a.moe/assets/not-found.jpg',
|
||||||
|
instanceUrl: this.config.url,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@ html
|
||||||
meta(name='theme-color' content= themeColor || '#86b300')
|
meta(name='theme-color' content= themeColor || '#86b300')
|
||||||
meta(name='theme-color-orig' content= themeColor || '#86b300')
|
meta(name='theme-color-orig' content= themeColor || '#86b300')
|
||||||
meta(property='og:site_name' content= instanceName || 'Misskey')
|
meta(property='og:site_name' content= instanceName || 'Misskey')
|
||||||
|
meta(property='instance_url' content= instanceUrl)
|
||||||
meta(name='viewport' content='width=device-width, initial-scale=1')
|
meta(name='viewport' content='width=device-width, initial-scale=1')
|
||||||
link(rel='icon' href= icon || '/favicon.ico')
|
link(rel='icon' href= icon || '/favicon.ico')
|
||||||
link(rel='apple-touch-icon' href= appleTouchIcon || '/apple-touch-icon.png')
|
link(rel='apple-touch-icon' href= appleTouchIcon || '/apple-touch-icon.png')
|
||||||
|
|
|
@ -152,6 +152,7 @@ describe('Timelines', () => {
|
||||||
|
|
||||||
await api('/following/create', { userId: bob.id }, alice);
|
await api('/following/create', { userId: bob.id }, alice);
|
||||||
await api('/following/create', { userId: carol.id }, alice);
|
await api('/following/create', { userId: carol.id }, alice);
|
||||||
|
await api('/following/create', { userId: carol.id }, bob);
|
||||||
await api('/following/update', { userId: bob.id, withReplies: true }, alice);
|
await api('/following/update', { userId: bob.id, withReplies: true }, alice);
|
||||||
await sleep(1000);
|
await sleep(1000);
|
||||||
const carolNote = await post(carol, { text: 'hi', visibility: 'followers' });
|
const carolNote = await post(carol, { text: 'hi', visibility: 'followers' });
|
||||||
|
|
|
@ -94,6 +94,7 @@ describe('ActivityPub', () => {
|
||||||
cacheRemoteFiles: true,
|
cacheRemoteFiles: true,
|
||||||
cacheRemoteSensitiveFiles: true,
|
cacheRemoteSensitiveFiles: true,
|
||||||
enableFanoutTimeline: true,
|
enableFanoutTimeline: true,
|
||||||
|
enableFanoutTimelineDbFallback: true,
|
||||||
perUserHomeTimelineCacheMax: 100,
|
perUserHomeTimelineCacheMax: 100,
|
||||||
perLocalUserUserTimelineCacheMax: 100,
|
perLocalUserUserTimelineCacheMax: 100,
|
||||||
perRemoteUserUserTimelineCacheMax: 100,
|
perRemoteUserUserTimelineCacheMax: 100,
|
||||||
|
|
|
@ -25,12 +25,12 @@
|
||||||
"@rollup/pluginutils": "5.0.5",
|
"@rollup/pluginutils": "5.0.5",
|
||||||
"@syuilo/aiscript": "0.16.0",
|
"@syuilo/aiscript": "0.16.0",
|
||||||
"@tabler/icons-webfont": "2.37.0",
|
"@tabler/icons-webfont": "2.37.0",
|
||||||
"@vitejs/plugin-vue": "4.4.0",
|
"@vitejs/plugin-vue": "4.5.0",
|
||||||
"@vue-macros/reactivity-transform": "0.3.23",
|
"@vue-macros/reactivity-transform": "0.4.0",
|
||||||
"@vue/compiler-sfc": "3.3.7",
|
"@vue/compiler-sfc": "3.3.8",
|
||||||
"astring": "1.8.6",
|
"astring": "1.8.6",
|
||||||
"autosize": "6.0.1",
|
"autosize": "6.0.1",
|
||||||
"aiscript-vscode": "github:aiscript-dev/aiscript-vscode#v0.0.5",
|
"aiscript-vscode": "github:aiscript-dev/aiscript-vscode#v0.0.6",
|
||||||
"broadcast-channel": "6.0.0",
|
"broadcast-channel": "6.0.0",
|
||||||
"browser-image-resizer": "github:misskey-dev/browser-image-resizer#v2.2.1-misskey.3",
|
"browser-image-resizer": "github:misskey-dev/browser-image-resizer#v2.2.1-misskey.3",
|
||||||
"buraha": "0.0.1",
|
"buraha": "0.0.1",
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
"chartjs-chart-matrix": "2.0.1",
|
"chartjs-chart-matrix": "2.0.1",
|
||||||
"chartjs-plugin-gradient": "0.6.1",
|
"chartjs-plugin-gradient": "0.6.1",
|
||||||
"chartjs-plugin-zoom": "2.0.1",
|
"chartjs-plugin-zoom": "2.0.1",
|
||||||
"chromatic": "7.6.0",
|
"chromatic": "9.0.0",
|
||||||
"compare-versions": "6.1.0",
|
"compare-versions": "6.1.0",
|
||||||
"cropperjs": "2.0.0-beta.4",
|
"cropperjs": "2.0.0-beta.4",
|
||||||
"date-fns": "2.30.0",
|
"date-fns": "2.30.0",
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
"photoswipe": "5.4.2",
|
"photoswipe": "5.4.2",
|
||||||
"punycode": "2.3.1",
|
"punycode": "2.3.1",
|
||||||
"querystring": "0.2.1",
|
"querystring": "0.2.1",
|
||||||
"rollup": "4.2.0",
|
"rollup": "4.4.1",
|
||||||
"sanitize-html": "2.11.0",
|
"sanitize-html": "2.11.0",
|
||||||
"shiki": "^0.14.5",
|
"shiki": "^0.14.5",
|
||||||
"sass": "1.69.5",
|
"sass": "1.69.5",
|
||||||
|
@ -75,62 +75,62 @@
|
||||||
"v-code-diff": "1.7.2",
|
"v-code-diff": "1.7.2",
|
||||||
"vanilla-tilt": "1.8.1",
|
"vanilla-tilt": "1.8.1",
|
||||||
"vite": "4.5.0",
|
"vite": "4.5.0",
|
||||||
"vue": "3.3.7",
|
"vue": "3.3.8",
|
||||||
"vuedraggable": "next"
|
"vuedraggable": "next"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@storybook/addon-actions": "7.5.2",
|
"@storybook/addon-actions": "7.5.3",
|
||||||
"@storybook/addon-essentials": "7.5.2",
|
"@storybook/addon-essentials": "7.5.3",
|
||||||
"@storybook/addon-interactions": "7.5.2",
|
"@storybook/addon-interactions": "7.5.3",
|
||||||
"@storybook/addon-links": "7.5.2",
|
"@storybook/addon-links": "7.5.3",
|
||||||
"@storybook/addon-storysource": "7.5.2",
|
"@storybook/addon-storysource": "7.5.3",
|
||||||
"@storybook/addons": "7.5.2",
|
"@storybook/addons": "7.5.3",
|
||||||
"@storybook/blocks": "7.5.2",
|
"@storybook/blocks": "7.5.3",
|
||||||
"@storybook/core-events": "7.5.2",
|
"@storybook/core-events": "7.5.3",
|
||||||
"@storybook/jest": "0.2.3",
|
"@storybook/jest": "0.2.3",
|
||||||
"@storybook/manager-api": "7.5.2",
|
"@storybook/manager-api": "7.5.3",
|
||||||
"@storybook/preview-api": "7.5.2",
|
"@storybook/preview-api": "7.5.3",
|
||||||
"@storybook/react": "7.5.2",
|
"@storybook/react": "7.5.3",
|
||||||
"@storybook/react-vite": "7.5.2",
|
"@storybook/react-vite": "7.5.3",
|
||||||
"@storybook/testing-library": "0.2.2",
|
"@storybook/testing-library": "0.2.2",
|
||||||
"@storybook/theming": "7.5.2",
|
"@storybook/theming": "7.5.3",
|
||||||
"@storybook/types": "7.5.2",
|
"@storybook/types": "7.5.3",
|
||||||
"@storybook/vue3": "7.5.2",
|
"@storybook/vue3": "7.5.3",
|
||||||
"@storybook/vue3-vite": "7.5.2",
|
"@storybook/vue3-vite": "7.5.3",
|
||||||
"@testing-library/vue": "8.0.0",
|
"@testing-library/vue": "8.0.0",
|
||||||
"@types/escape-regexp": "0.0.2",
|
"@types/escape-regexp": "0.0.3",
|
||||||
"@types/estree": "1.0.4",
|
"@types/estree": "1.0.5",
|
||||||
"@types/matter-js": "0.19.2",
|
"@types/matter-js": "0.19.4",
|
||||||
"@types/micromatch": "4.0.4",
|
"@types/micromatch": "4.0.5",
|
||||||
"@types/node": "20.8.10",
|
"@types/node": "20.9.1",
|
||||||
"@types/punycode": "2.1.1",
|
"@types/punycode": "2.1.2",
|
||||||
"@types/sanitize-html": "2.9.3",
|
"@types/sanitize-html": "2.9.4",
|
||||||
"@types/throttle-debounce": "5.0.1",
|
"@types/throttle-debounce": "5.0.2",
|
||||||
"@types/tinycolor2": "1.4.5",
|
"@types/tinycolor2": "1.4.6",
|
||||||
"@types/uuid": "9.0.6",
|
"@types/uuid": "9.0.7",
|
||||||
"@types/websocket": "1.0.8",
|
"@types/websocket": "1.0.9",
|
||||||
"@types/ws": "8.5.8",
|
"@types/ws": "8.5.9",
|
||||||
"@typescript-eslint/eslint-plugin": "6.9.1",
|
"@typescript-eslint/eslint-plugin": "6.11.0",
|
||||||
"@typescript-eslint/parser": "6.9.1",
|
"@typescript-eslint/parser": "6.11.0",
|
||||||
"@vitest/coverage-v8": "0.34.6",
|
"@vitest/coverage-v8": "0.34.6",
|
||||||
"@vue/runtime-core": "3.3.7",
|
"@vue/runtime-core": "3.3.8",
|
||||||
"acorn": "8.11.2",
|
"acorn": "8.11.2",
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"cypress": "13.4.0",
|
"cypress": "13.5.1",
|
||||||
"eslint": "8.52.0",
|
"eslint": "8.53.0",
|
||||||
"eslint-plugin-import": "2.29.0",
|
"eslint-plugin-import": "2.29.0",
|
||||||
"eslint-plugin-vue": "9.18.1",
|
"eslint-plugin-vue": "9.18.1",
|
||||||
"fast-glob": "3.3.1",
|
"fast-glob": "3.3.2",
|
||||||
"happy-dom": "10.0.3",
|
"happy-dom": "10.0.3",
|
||||||
"micromatch": "4.0.5",
|
"micromatch": "4.0.5",
|
||||||
"msw": "1.3.2",
|
"msw": "1.3.2",
|
||||||
"msw-storybook-addon": "1.10.0",
|
"msw-storybook-addon": "1.10.0",
|
||||||
"nodemon": "3.0.1",
|
"nodemon": "3.0.1",
|
||||||
"prettier": "3.0.3",
|
"prettier": "3.1.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"start-server-and-test": "2.0.1",
|
"start-server-and-test": "2.0.3",
|
||||||
"storybook": "7.5.2",
|
"storybook": "7.5.3",
|
||||||
"storybook-addon-misskey-theme": "github:misskey-dev/storybook-addon-misskey-theme",
|
"storybook-addon-misskey-theme": "github:misskey-dev/storybook-addon-misskey-theme",
|
||||||
"summaly": "github:misskey-dev/summaly",
|
"summaly": "github:misskey-dev/summaly",
|
||||||
"vite-plugin-turbosnap": "1.0.3",
|
"vite-plugin-turbosnap": "1.0.3",
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { common } from './common.js';
|
||||||
import { version, ui, lang, updateLocale } from '@/config.js';
|
import { version, ui, lang, updateLocale } from '@/config.js';
|
||||||
import { i18n, updateI18n } from '@/i18n.js';
|
import { i18n, updateI18n } from '@/i18n.js';
|
||||||
import { confirm, alert, post, popup, toast } from '@/os.js';
|
import { confirm, alert, post, popup, toast } from '@/os.js';
|
||||||
import { useStream, isReloading } from '@/stream.js';
|
import { useStream } from '@/stream.js';
|
||||||
import * as sound from '@/scripts/sound.js';
|
import * as sound from '@/scripts/sound.js';
|
||||||
import { $i, refreshAccount, login, updateAccount, signout } from '@/account.js';
|
import { $i, refreshAccount, login, updateAccount, signout } from '@/account.js';
|
||||||
import { defaultStore, ColdDeviceStorage } from '@/store.js';
|
import { defaultStore, ColdDeviceStorage } from '@/store.js';
|
||||||
|
@ -39,7 +39,6 @@ export async function mainBoot() {
|
||||||
|
|
||||||
let reloadDialogShowing = false;
|
let reloadDialogShowing = false;
|
||||||
stream.on('_disconnected_', async () => {
|
stream.on('_disconnected_', async () => {
|
||||||
if (isReloading) return;
|
|
||||||
if (defaultStore.state.serverDisconnectedBehavior === 'reload') {
|
if (defaultStore.state.serverDisconnectedBehavior === 'reload') {
|
||||||
location.reload();
|
location.reload();
|
||||||
} else if (defaultStore.state.serverDisconnectedBehavior === 'dialog') {
|
} else if (defaultStore.state.serverDisconnectedBehavior === 'dialog') {
|
||||||
|
@ -58,7 +57,7 @@ export async function mainBoot() {
|
||||||
});
|
});
|
||||||
|
|
||||||
for (const plugin of ColdDeviceStorage.get('plugins').filter(p => p.active)) {
|
for (const plugin of ColdDeviceStorage.get('plugins').filter(p => p.active)) {
|
||||||
import('../plugin').then(async ({ install }) => {
|
import('@/plugin.js').then(async ({ install }) => {
|
||||||
// Workaround for https://bugs.webkit.org/show_bug.cgi?id=242740
|
// Workaround for https://bugs.webkit.org/show_bug.cgi?id=242740
|
||||||
await new Promise(r => setTimeout(r, 0));
|
await new Promise(r => setTimeout(r, 0));
|
||||||
install(plugin);
|
install(plugin);
|
||||||
|
|
|
@ -45,12 +45,12 @@ import contains from '@/scripts/contains.js';
|
||||||
import { char2twemojiFilePath, char2fluentEmojiFilePath } from '@/scripts/emoji-base.js';
|
import { char2twemojiFilePath, char2fluentEmojiFilePath } from '@/scripts/emoji-base.js';
|
||||||
import { acct } from '@/filters/user.js';
|
import { acct } from '@/filters/user.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { MFM_TAGS } from '@/scripts/mfm-tags.js';
|
|
||||||
import { defaultStore } from '@/store.js';
|
import { defaultStore } from '@/store.js';
|
||||||
import { emojilist, getEmojiName } from '@/scripts/emojilist.js';
|
import { emojilist, getEmojiName } from '@/scripts/emojilist.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { miLocalStorage } from '@/local-storage.js';
|
import { miLocalStorage } from '@/local-storage.js';
|
||||||
import { customEmojis } from '@/custom-emojis.js';
|
import { customEmojis } from '@/custom-emojis.js';
|
||||||
|
import { MFM_TAGS } from '@/const.js';
|
||||||
|
|
||||||
type EmojiDef = {
|
type EmojiDef = {
|
||||||
emoji: string;
|
emoji: string;
|
||||||
|
|
|
@ -43,7 +43,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
<div v-if="renoteCollapsed" :class="$style.collapsedRenoteTarget">
|
<div v-if="renoteCollapsed" :class="$style.collapsedRenoteTarget">
|
||||||
<MkAvatar :class="$style.collapsedRenoteTargetAvatar" :user="appearNote.user" link preview/>
|
<MkAvatar :class="$style.collapsedRenoteTargetAvatar" :user="appearNote.user" link preview/>
|
||||||
<Mfm :text="getNoteSummary(appearNote)" :plain="true" :nowrap="true" :author="appearNote.user" :nyaize="'account'" :class="$style.collapsedRenoteTargetText" @click="renoteCollapsed = false"/>
|
<Mfm :text="getNoteSummary(appearNote)" :plain="true" :nowrap="true" :author="appearNote.user" :nyaize="'respect'" :class="$style.collapsedRenoteTargetText" @click="renoteCollapsed = false"/>
|
||||||
</div>
|
</div>
|
||||||
<article v-else :class="$style.article" @contextmenu.stop="onContextmenu">
|
<article v-else :class="$style.article" @contextmenu.stop="onContextmenu">
|
||||||
<div v-if="appearNote.channel" :class="$style.colorBar" :style="{ background: appearNote.channel.color }"></div>
|
<div v-if="appearNote.channel" :class="$style.colorBar" :style="{ background: appearNote.channel.color }"></div>
|
||||||
|
@ -53,7 +53,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkInstanceTicker v-if="showTicker" :instance="appearNote.user.instance"/>
|
<MkInstanceTicker v-if="showTicker" :instance="appearNote.user.instance"/>
|
||||||
<div style="container-type: inline-size;">
|
<div style="container-type: inline-size;">
|
||||||
<p v-if="appearNote.cw != null" :class="$style.cw">
|
<p v-if="appearNote.cw != null" :class="$style.cw">
|
||||||
<Mfm v-if="appearNote.cw != ''" style="margin-right: 8px;" :text="appearNote.cw" :author="appearNote.user" :nyaize="'account'"/>
|
<Mfm v-if="appearNote.cw != ''" style="margin-right: 8px;" :text="appearNote.cw" :author="appearNote.user" :nyaize="'respect'"/>
|
||||||
<MkCwButton v-model="showContent" :note="appearNote" style="margin: 4px 0;"/>
|
<MkCwButton v-model="showContent" :note="appearNote" style="margin: 4px 0;"/>
|
||||||
</p>
|
</p>
|
||||||
<div v-show="appearNote.cw == null || showContent" :class="[{ [$style.contentCollapsed]: collapsed }]">
|
<div v-show="appearNote.cw == null || showContent" :class="[{ [$style.contentCollapsed]: collapsed }]">
|
||||||
|
@ -65,7 +65,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
:parsedNodes="parsed"
|
:parsedNodes="parsed"
|
||||||
:text="appearNote.text"
|
:text="appearNote.text"
|
||||||
:author="appearNote.user"
|
:author="appearNote.user"
|
||||||
:nyaize="'account'"
|
:nyaize="'respect'"
|
||||||
:emojiUrls="appearNote.emojis"
|
:emojiUrls="appearNote.emojis"
|
||||||
:enableEmojiMenu="true"
|
:enableEmojiMenu="true"
|
||||||
:enableEmojiMenuReaction="true"
|
:enableEmojiMenuReaction="true"
|
||||||
|
@ -74,7 +74,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkLoading v-if="translating" mini/>
|
<MkLoading v-if="translating" mini/>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<b>{{ i18n.t('translatedFrom', { x: translation.sourceLang }) }}: </b>
|
<b>{{ i18n.t('translatedFrom', { x: translation.sourceLang }) }}: </b>
|
||||||
<Mfm :text="translation.text" :author="appearNote.user" :nyaize="'account'" :emojiUrls="appearNote.emojis"/>
|
<Mfm :text="translation.text" :author="appearNote.user" :nyaize="'respect'" :emojiUrls="appearNote.emojis"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -202,11 +202,17 @@ let note = $ref(deepClone(props.note));
|
||||||
// plugin
|
// plugin
|
||||||
if (noteViewInterruptors.length > 0) {
|
if (noteViewInterruptors.length > 0) {
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
let result:Misskey.entities.Note | null = deepClone(note);
|
let result: Misskey.entities.Note | null = deepClone(note);
|
||||||
for (const interruptor of noteViewInterruptors) {
|
for (const interruptor of noteViewInterruptors) {
|
||||||
result = await interruptor.handler(result);
|
try {
|
||||||
|
result = await interruptor.handler(result);
|
||||||
if (result === null) return isDeleted.value = true;
|
if (result === null) {
|
||||||
|
isDeleted.value = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
note = result;
|
note = result;
|
||||||
});
|
});
|
||||||
|
@ -228,8 +234,8 @@ const clipButton = shallowRef<HTMLElement>();
|
||||||
let appearNote = $computed(() => isRenote ? note.renote as Misskey.entities.Note : note);
|
let appearNote = $computed(() => isRenote ? note.renote as Misskey.entities.Note : note);
|
||||||
const isMyRenote = $i && ($i.id === note.userId);
|
const isMyRenote = $i && ($i.id === note.userId);
|
||||||
const showContent = ref(false);
|
const showContent = ref(false);
|
||||||
const parsed = appearNote.text ? mfm.parse(appearNote.text) : null;
|
const parsed = $computed(() => appearNote.text ? mfm.parse(appearNote.text) : null);
|
||||||
const urls = parsed ? extractUrlFromMfm(parsed) : null;
|
const urls = $computed(() => parsed ? extractUrlFromMfm(parsed) : null);
|
||||||
const isLong = shouldCollapsed(appearNote, urls ?? []);
|
const isLong = shouldCollapsed(appearNote, urls ?? []);
|
||||||
const collapsed = ref(appearNote.cw == null && isLong);
|
const collapsed = ref(appearNote.cw == null && isLong);
|
||||||
const isDeleted = ref(false);
|
const isDeleted = ref(false);
|
||||||
|
@ -298,7 +304,7 @@ function renote(viaKeyboard = false) {
|
||||||
const { menu } = getRenoteMenu({ note: note, renoteButton, mock: props.mock });
|
const { menu } = getRenoteMenu({ note: note, renoteButton, mock: props.mock });
|
||||||
os.popupMenu(menu, renoteButton.value, {
|
os.popupMenu(menu, renoteButton.value, {
|
||||||
viaKeyboard,
|
viaKeyboard,
|
||||||
}).then(focus);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function reply(viaKeyboard = false): void {
|
function reply(viaKeyboard = false): void {
|
||||||
|
|
|
@ -67,7 +67,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</header>
|
</header>
|
||||||
<div :class="$style.noteContent">
|
<div :class="$style.noteContent">
|
||||||
<p v-if="appearNote.cw != null" :class="$style.cw">
|
<p v-if="appearNote.cw != null" :class="$style.cw">
|
||||||
<Mfm v-if="appearNote.cw != ''" style="margin-right: 8px;" :text="appearNote.cw" :author="appearNote.user" :nyaize="'account'"/>
|
<Mfm v-if="appearNote.cw != ''" style="margin-right: 8px;" :text="appearNote.cw" :author="appearNote.user" :nyaize="'respect'"/>
|
||||||
<MkCwButton v-model="showContent" :note="appearNote"/>
|
<MkCwButton v-model="showContent" :note="appearNote"/>
|
||||||
</p>
|
</p>
|
||||||
<div v-show="appearNote.cw == null || showContent">
|
<div v-show="appearNote.cw == null || showContent">
|
||||||
|
@ -78,7 +78,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
:parsedNodes="parsed"
|
:parsedNodes="parsed"
|
||||||
:text="appearNote.text"
|
:text="appearNote.text"
|
||||||
:author="appearNote.user"
|
:author="appearNote.user"
|
||||||
:nyaize="'account'"
|
:nyaize="'respect'"
|
||||||
:emojiUrls="appearNote.emojis"
|
:emojiUrls="appearNote.emojis"
|
||||||
:enableEmojiMenu="true"
|
:enableEmojiMenu="true"
|
||||||
:enableEmojiMenuReaction="true"
|
:enableEmojiMenuReaction="true"
|
||||||
|
@ -88,7 +88,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkLoading v-if="translating" mini/>
|
<MkLoading v-if="translating" mini/>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<b>{{ i18n.t('translatedFrom', { x: translation.sourceLang }) }}: </b>
|
<b>{{ i18n.t('translatedFrom', { x: translation.sourceLang }) }}: </b>
|
||||||
<Mfm :text="translation.text" :author="appearNote.user" :nyaize="'account'" :emojiUrls="appearNote.emojis"/>
|
<Mfm :text="translation.text" :author="appearNote.user" :nyaize="'respect'" :emojiUrls="appearNote.emojis"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="appearNote.files.length > 0">
|
<div v-if="appearNote.files.length > 0">
|
||||||
|
@ -239,11 +239,17 @@ let note = $ref(deepClone(props.note));
|
||||||
// plugin
|
// plugin
|
||||||
if (noteViewInterruptors.length > 0) {
|
if (noteViewInterruptors.length > 0) {
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
let result:Misskey.entities.Note | null = deepClone(note);
|
let result: Misskey.entities.Note | null = deepClone(note);
|
||||||
for (const interruptor of noteViewInterruptors) {
|
for (const interruptor of noteViewInterruptors) {
|
||||||
result = await interruptor.handler(result);
|
try {
|
||||||
|
result = await interruptor.handler(result);
|
||||||
if (result === null) return isDeleted.value = true;
|
if (result === null) {
|
||||||
|
isDeleted.value = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
note = result;
|
note = result;
|
||||||
});
|
});
|
||||||
|
@ -344,7 +350,7 @@ function renote(viaKeyboard = false) {
|
||||||
const { menu } = getRenoteMenu({ note: note, renoteButton });
|
const { menu } = getRenoteMenu({ note: note, renoteButton });
|
||||||
os.popupMenu(menu, renoteButton.value, {
|
os.popupMenu(menu, renoteButton.value, {
|
||||||
viaKeyboard,
|
viaKeyboard,
|
||||||
}).then(focus);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function reply(viaKeyboard = false): void {
|
function reply(viaKeyboard = false): void {
|
||||||
|
|
|
@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<Mfm :text="text.trim()" :author="user" :nyaize="'account'" :i="user"/>
|
<Mfm :text="text.trim()" :author="user" :nyaize="'respect'" :i="user"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkNoteHeader :class="$style.header" :note="note" :mini="true"/>
|
<MkNoteHeader :class="$style.header" :note="note" :mini="true"/>
|
||||||
<div>
|
<div>
|
||||||
<p v-if="note.cw != null" :class="$style.cw">
|
<p v-if="note.cw != null" :class="$style.cw">
|
||||||
<Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :nyaize="'account'" :emojiUrls="note.emojis"/>
|
<Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :nyaize="'respect'" :emojiUrls="note.emojis"/>
|
||||||
<MkCwButton v-model="showContent" :note="note"/>
|
<MkCwButton v-model="showContent" :note="note"/>
|
||||||
</p>
|
</p>
|
||||||
<div v-show="note.cw == null || showContent">
|
<div v-show="note.cw == null || showContent">
|
||||||
|
|
|
@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkNoteHeader :class="$style.header" :note="note" :mini="true"/>
|
<MkNoteHeader :class="$style.header" :note="note" :mini="true"/>
|
||||||
<div>
|
<div>
|
||||||
<p v-if="note.cw != null" :class="$style.cw">
|
<p v-if="note.cw != null" :class="$style.cw">
|
||||||
<Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :nyaize="'account'"/>
|
<Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :nyaize="'respect'"/>
|
||||||
<MkCwButton v-model="showContent" :note="note"/>
|
<MkCwButton v-model="showContent" :note="note"/>
|
||||||
</p>
|
</p>
|
||||||
<div v-show="note.cw == null || showContent">
|
<div v-show="note.cw == null || showContent">
|
||||||
|
|
|
@ -43,12 +43,11 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { computed, ComputedRef, isRef, nextTick, onActivated, onBeforeUnmount, onDeactivated, onMounted, ref, watch } from 'vue';
|
import { computed, ComputedRef, isRef, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onDeactivated, ref, watch } from 'vue';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { onScrollTop, isTopVisible, getBodyScrollHeight, getScrollContainer, onScrollBottom, scrollToBottom, scroll, isBottomVisible } from '@/scripts/scroll.js';
|
import { onScrollTop, isTopVisible, getBodyScrollHeight, getScrollContainer, onScrollBottom, scrollToBottom, scroll, isBottomVisible } from '@/scripts/scroll.js';
|
||||||
import { useDocumentVisibility } from '@/scripts/use-document-visibility.js';
|
import { useDocumentVisibility } from '@/scripts/use-document-visibility.js';
|
||||||
import MkButton from '@/components/MkButton.vue';
|
|
||||||
import { defaultStore } from '@/store.js';
|
import { defaultStore } from '@/store.js';
|
||||||
import { MisskeyEntity } from '@/types/date-separated-list';
|
import { MisskeyEntity } from '@/types/date-separated-list';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
|
@ -79,6 +78,7 @@ export type Paging<E extends keyof Misskey.Endpoints = keyof Misskey.Endpoints>
|
||||||
</script>
|
</script>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { infoImageUrl } from '@/instance.js';
|
import { infoImageUrl } from '@/instance.js';
|
||||||
|
import MkButton from '@/components/MkButton.vue';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
pagination: Paging;
|
pagination: Paging;
|
||||||
|
@ -156,9 +156,8 @@ watch([$$(backed), $$(contentEl)], () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (props.pagination.params && isRef(props.pagination.params)) {
|
// パラメータに何らかの変更があった際、再読込したい(チャンネル等のIDが変わったなど)
|
||||||
watch(props.pagination.params, init, { deep: true });
|
watch(() => props.pagination.params, init, { deep: true });
|
||||||
}
|
|
||||||
|
|
||||||
watch(queue, (a, b) => {
|
watch(queue, (a, b) => {
|
||||||
if (a.length === 0 && b.length === 0) return;
|
if (a.length === 0 && b.length === 0) return;
|
||||||
|
@ -364,8 +363,6 @@ const updateItem = (id: MisskeyEntity['id'], replacer: (old: MisskeyEntity) => M
|
||||||
items.value[i] = replacer(items.value[i]);
|
items.value[i] = replacer(items.value[i]);
|
||||||
};
|
};
|
||||||
|
|
||||||
const inited = init();
|
|
||||||
|
|
||||||
onActivated(() => {
|
onActivated(() => {
|
||||||
isBackTop.value = false;
|
isBackTop.value = false;
|
||||||
});
|
});
|
||||||
|
@ -378,8 +375,8 @@ function toBottom() {
|
||||||
scrollToBottom(contentEl);
|
scrollToBottom(contentEl);
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onBeforeMount(() => {
|
||||||
inited.then(() => {
|
init().then(() => {
|
||||||
if (props.pagination.reversed) {
|
if (props.pagination.reversed) {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
setTimeout(toBottom, 800);
|
setTimeout(toBottom, 800);
|
||||||
|
@ -407,7 +404,6 @@ defineExpose({
|
||||||
queue,
|
queue,
|
||||||
backed,
|
backed,
|
||||||
more,
|
more,
|
||||||
inited,
|
|
||||||
reload,
|
reload,
|
||||||
prepend,
|
prepend,
|
||||||
append: appendItem,
|
append: appendItem,
|
||||||
|
|
|
@ -753,7 +753,11 @@ async function post(ev?: MouseEvent) {
|
||||||
// plugin
|
// plugin
|
||||||
if (notePostInterruptors.length > 0) {
|
if (notePostInterruptors.length > 0) {
|
||||||
for (const interruptor of notePostInterruptors) {
|
for (const interruptor of notePostInterruptors) {
|
||||||
postData = await interruptor.handler(deepClone(postData));
|
try {
|
||||||
|
postData = await interruptor.handler(deepClone(postData));
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1071,6 +1075,7 @@ defineExpose({
|
||||||
|
|
||||||
.preview {
|
.preview {
|
||||||
padding: 16px 20px 0 20px;
|
padding: 16px 20px 0 20px;
|
||||||
|
min-height: 75px;
|
||||||
max-height: 150px;
|
max-height: 150px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,6 @@ function getReactionName(reaction: string): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
.users {
|
.users {
|
||||||
contain: content;
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
margin: -4px 14px 0 10px;
|
margin: -4px 14px 0 10px;
|
||||||
|
@ -85,7 +84,7 @@ function getReactionName(reaction: string): string {
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: visible;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<span v-if="note.isHidden" style="opacity: 0.5">({{ i18n.ts.private }})</span>
|
<span v-if="note.isHidden" style="opacity: 0.5">({{ i18n.ts.private }})</span>
|
||||||
<span v-if="note.deletedAt" style="opacity: 0.5">({{ i18n.ts.deleted }})</span>
|
<span v-if="note.deletedAt" style="opacity: 0.5">({{ i18n.ts.deleted }})</span>
|
||||||
<MkA v-if="note.replyId" :class="$style.reply" :to="`/notes/${note.replyId}`"><i class="ti ti-arrow-back-up"></i></MkA>
|
<MkA v-if="note.replyId" :class="$style.reply" :to="`/notes/${note.replyId}`"><i class="ti ti-arrow-back-up"></i></MkA>
|
||||||
<Mfm v-if="note.text" :text="note.text" :author="note.user" :emojiUrls="note.emojis"/>
|
<Mfm v-if="note.text" :text="note.text" :author="note.user" :nyaize="'respect'" :emojiUrls="note.emojis"/>
|
||||||
<MkA v-if="note.renoteId" :class="$style.rp" :to="`/notes/${note.renoteId}`">RN: ...</MkA>
|
<MkA v-if="note.renoteId" :class="$style.rp" :to="`/notes/${note.renoteId}`">RN: ...</MkA>
|
||||||
</div>
|
</div>
|
||||||
<details v-if="note.files.length > 0">
|
<details v-if="note.files.length > 0">
|
||||||
|
|
|
@ -5,19 +5,28 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<MkPullToRefresh ref="prComponent" :refresher="() => reloadTimeline()">
|
<MkPullToRefresh ref="prComponent" :refresher="() => reloadTimeline()">
|
||||||
<MkNotes ref="tlComponent" :noGap="!defaultStore.state.showGapBetweenNotesInTimeline" :pagination="pagination" @queue="emit('queue', $event)" @status="prComponent.setDisabled($event)"/>
|
<MkNotes
|
||||||
|
v-if="paginationQuery"
|
||||||
|
ref="tlComponent"
|
||||||
|
:pagination="paginationQuery"
|
||||||
|
:noGap="!defaultStore.state.showGapBetweenNotesInTimeline"
|
||||||
|
@queue="emit('queue', $event)"
|
||||||
|
@status="prComponent.setDisabled($event)"
|
||||||
|
/>
|
||||||
</MkPullToRefresh>
|
</MkPullToRefresh>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, provide, onUnmounted } from 'vue';
|
import { computed, watch, onUnmounted, provide } from 'vue';
|
||||||
|
import { Connection } from 'misskey-js/built/streaming.js';
|
||||||
import MkNotes from '@/components/MkNotes.vue';
|
import MkNotes from '@/components/MkNotes.vue';
|
||||||
import MkPullToRefresh from '@/components/MkPullToRefresh.vue';
|
import MkPullToRefresh from '@/components/MkPullToRefresh.vue';
|
||||||
import { useStream, reloadStream } from '@/stream.js';
|
import { useStream } from '@/stream.js';
|
||||||
import * as sound from '@/scripts/sound.js';
|
import * as sound from '@/scripts/sound.js';
|
||||||
import { $i } from '@/account.js';
|
import { $i } from '@/account.js';
|
||||||
import { instance } from '@/instance.js';
|
import { instance } from '@/instance.js';
|
||||||
import { defaultStore } from '@/store.js';
|
import { defaultStore } from '@/store.js';
|
||||||
|
import { Paging } from '@/components/MkPagination.vue';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
src: string;
|
src: string;
|
||||||
|
@ -42,6 +51,17 @@ const emit = defineEmits<{
|
||||||
|
|
||||||
provide('inChannel', computed(() => props.src === 'channel'));
|
provide('inChannel', computed(() => props.src === 'channel'));
|
||||||
|
|
||||||
|
type TimelineQueryType = {
|
||||||
|
antennaId?: string,
|
||||||
|
withRenotes?: boolean,
|
||||||
|
withReplies?: boolean,
|
||||||
|
withFiles?: boolean,
|
||||||
|
visibility?: string,
|
||||||
|
listId?: string,
|
||||||
|
channelId?: string,
|
||||||
|
roleId?: string
|
||||||
|
}
|
||||||
|
|
||||||
const prComponent: InstanceType<typeof MkPullToRefresh> = $ref();
|
const prComponent: InstanceType<typeof MkPullToRefresh> = $ref();
|
||||||
const tlComponent: InstanceType<typeof MkNotes> = $ref();
|
const tlComponent: InstanceType<typeof MkNotes> = $ref();
|
||||||
|
|
||||||
|
@ -63,13 +83,13 @@ const prepend = note => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let endpoint;
|
let connection: Connection;
|
||||||
let query;
|
let connection2: Connection;
|
||||||
let connection;
|
let paginationQuery: Paging | null = null;
|
||||||
let connection2;
|
|
||||||
|
|
||||||
const stream = useStream();
|
const stream = useStream();
|
||||||
const connectChannel = () => {
|
|
||||||
|
function connectChannel() {
|
||||||
if (props.src === 'antenna') {
|
if (props.src === 'antenna') {
|
||||||
connection = stream.useChannel('antenna', {
|
connection = stream.useChannel('antenna', {
|
||||||
antennaId: props.antenna,
|
antennaId: props.antenna,
|
||||||
|
@ -129,92 +149,119 @@ const connectChannel = () => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (props.src !== 'directs' || props.src !== 'mentions') connection.on('note', prepend);
|
if (props.src !== 'directs' || props.src !== 'mentions') connection.on('note', prepend);
|
||||||
};
|
|
||||||
|
|
||||||
if (props.src === 'antenna') {
|
|
||||||
endpoint = 'antennas/notes';
|
|
||||||
query = {
|
|
||||||
antennaId: props.antenna,
|
|
||||||
};
|
|
||||||
} else if (props.src === 'home') {
|
|
||||||
endpoint = 'notes/timeline';
|
|
||||||
query = {
|
|
||||||
withRenotes: props.withRenotes,
|
|
||||||
withFiles: props.onlyFiles ? true : undefined,
|
|
||||||
};
|
|
||||||
} else if (props.src === 'local') {
|
|
||||||
endpoint = 'notes/local-timeline';
|
|
||||||
query = {
|
|
||||||
withRenotes: props.withRenotes,
|
|
||||||
withReplies: props.withReplies,
|
|
||||||
withFiles: props.onlyFiles ? true : undefined,
|
|
||||||
};
|
|
||||||
} else if (props.src === 'media') {
|
|
||||||
endpoint = 'notes/hybrid-timeline';
|
|
||||||
query = {
|
|
||||||
withRenotes: props.withRenotes,
|
|
||||||
withReplies: props.withReplies,
|
|
||||||
withFiles: true,
|
|
||||||
};
|
|
||||||
} else if (props.src === 'social') {
|
|
||||||
endpoint = 'notes/hybrid-timeline';
|
|
||||||
query = {
|
|
||||||
withRenotes: props.withRenotes,
|
|
||||||
withReplies: props.withReplies,
|
|
||||||
withFiles: props.onlyFiles ? true : undefined,
|
|
||||||
};
|
|
||||||
} else if (props.src === 'global') {
|
|
||||||
endpoint = 'notes/global-timeline';
|
|
||||||
query = {
|
|
||||||
withRenotes: props.withRenotes,
|
|
||||||
withFiles: props.onlyFiles ? true : undefined,
|
|
||||||
};
|
|
||||||
} else if (props.src === 'mentions') {
|
|
||||||
endpoint = 'notes/mentions';
|
|
||||||
} else if (props.src === 'directs') {
|
|
||||||
endpoint = 'notes/mentions';
|
|
||||||
query = {
|
|
||||||
visibility: 'specified',
|
|
||||||
};
|
|
||||||
} else if (props.src === 'list') {
|
|
||||||
endpoint = 'notes/user-list-timeline';
|
|
||||||
query = {
|
|
||||||
withFiles: props.onlyFiles ? true : undefined,
|
|
||||||
listId: props.list,
|
|
||||||
};
|
|
||||||
} else if (props.src === 'channel') {
|
|
||||||
endpoint = 'channels/timeline';
|
|
||||||
query = {
|
|
||||||
channelId: props.channel,
|
|
||||||
};
|
|
||||||
} else if (props.src === 'role') {
|
|
||||||
endpoint = 'roles/notes';
|
|
||||||
query = {
|
|
||||||
roleId: props.role,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!defaultStore.state.disableStreamingTimeline) {
|
function disconnectChannel() {
|
||||||
connectChannel();
|
if (connection) connection.dispose();
|
||||||
|
if (connection2) connection2.dispose();
|
||||||
onUnmounted(() => {
|
|
||||||
connection.dispose();
|
|
||||||
if (connection2) connection2.dispose();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const pagination = {
|
function updatePaginationQuery() {
|
||||||
endpoint: endpoint,
|
let endpoint: string | null;
|
||||||
limit: 10,
|
let query: TimelineQueryType | null;
|
||||||
params: query,
|
|
||||||
};
|
if (props.src === 'antenna') {
|
||||||
|
endpoint = 'antennas/notes';
|
||||||
|
query = {
|
||||||
|
antennaId: props.antenna,
|
||||||
|
};
|
||||||
|
} else if (props.src === 'home') {
|
||||||
|
endpoint = 'notes/timeline';
|
||||||
|
query = {
|
||||||
|
withRenotes: props.withRenotes,
|
||||||
|
withFiles: props.onlyFiles ? true : undefined,
|
||||||
|
};
|
||||||
|
} else if (props.src === 'local') {
|
||||||
|
endpoint = 'notes/local-timeline';
|
||||||
|
query = {
|
||||||
|
withRenotes: props.withRenotes,
|
||||||
|
withReplies: props.withReplies,
|
||||||
|
withFiles: props.onlyFiles ? true : undefined,
|
||||||
|
};
|
||||||
|
} else if (props.src === 'media') {
|
||||||
|
endpoint = 'notes/hybrid-timeline';
|
||||||
|
query = {
|
||||||
|
withRenotes: props.withRenotes,
|
||||||
|
withReplies: props.withReplies,
|
||||||
|
withFiles: true,
|
||||||
|
};
|
||||||
|
} else if (props.src === 'social') {
|
||||||
|
endpoint = 'notes/hybrid-timeline';
|
||||||
|
query = {
|
||||||
|
withRenotes: props.withRenotes,
|
||||||
|
withReplies: props.withReplies,
|
||||||
|
withFiles: props.onlyFiles ? true : undefined,
|
||||||
|
};
|
||||||
|
} else if (props.src === 'global') {
|
||||||
|
endpoint = 'notes/global-timeline';
|
||||||
|
query = {
|
||||||
|
withRenotes: props.withRenotes,
|
||||||
|
withFiles: props.onlyFiles ? true : undefined,
|
||||||
|
};
|
||||||
|
} else if (props.src === 'mentions') {
|
||||||
|
endpoint = 'notes/mentions';
|
||||||
|
query = null;
|
||||||
|
} else if (props.src === 'directs') {
|
||||||
|
endpoint = 'notes/mentions';
|
||||||
|
query = {
|
||||||
|
visibility: 'specified',
|
||||||
|
};
|
||||||
|
} else if (props.src === 'list') {
|
||||||
|
endpoint = 'notes/user-list-timeline';
|
||||||
|
query = {
|
||||||
|
withFiles: props.onlyFiles ? true : undefined,
|
||||||
|
listId: props.list,
|
||||||
|
};
|
||||||
|
} else if (props.src === 'channel') {
|
||||||
|
endpoint = 'channels/timeline';
|
||||||
|
query = {
|
||||||
|
channelId: props.channel,
|
||||||
|
};
|
||||||
|
} else if (props.src === 'role') {
|
||||||
|
endpoint = 'roles/notes';
|
||||||
|
query = {
|
||||||
|
roleId: props.role,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
endpoint = null;
|
||||||
|
query = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (endpoint && query) {
|
||||||
|
paginationQuery = {
|
||||||
|
endpoint: endpoint,
|
||||||
|
limit: 10,
|
||||||
|
params: query,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
paginationQuery = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function refreshEndpointAndChannel() {
|
||||||
|
if (!defaultStore.state.disableStreamingTimeline) {
|
||||||
|
disconnectChannel();
|
||||||
|
connectChannel();
|
||||||
|
}
|
||||||
|
|
||||||
|
updatePaginationQuery();
|
||||||
|
}
|
||||||
|
|
||||||
|
// IDが切り替わったら切り替え先のTLを表示させたい
|
||||||
|
watch(() => [props.list, props.antenna, props.channel, props.role], refreshEndpointAndChannel);
|
||||||
|
|
||||||
|
// 初回表示用
|
||||||
|
refreshEndpointAndChannel();
|
||||||
|
|
||||||
|
onUnmounted(() => {
|
||||||
|
disconnectChannel();
|
||||||
|
});
|
||||||
|
|
||||||
function reloadTimeline() {
|
function reloadTimeline() {
|
||||||
return new Promise<void>((res) => {
|
return new Promise<void>((res) => {
|
||||||
tlNotesCount = 0;
|
tlNotesCount = 0;
|
||||||
|
|
||||||
tlComponent.pagingComponent?.reload().then(() => {
|
tlComponent.pagingComponent?.reload().then(() => {
|
||||||
reloadStream();
|
|
||||||
res();
|
res();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,6 +7,7 @@ import { VNode, h } from 'vue';
|
||||||
import * as mfm from 'mfm-js';
|
import * as mfm from 'mfm-js';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import MkUrl from '@/components/global/MkUrl.vue';
|
import MkUrl from '@/components/global/MkUrl.vue';
|
||||||
|
import MkTime from '@/components/global/MkTime.vue';
|
||||||
import MkLink from '@/components/MkLink.vue';
|
import MkLink from '@/components/MkLink.vue';
|
||||||
import MkMention from '@/components/MkMention.vue';
|
import MkMention from '@/components/MkMention.vue';
|
||||||
import MkEmoji from '@/components/global/MkEmoji.vue';
|
import MkEmoji from '@/components/global/MkEmoji.vue';
|
||||||
|
@ -36,7 +37,7 @@ type MfmProps = {
|
||||||
isNote?: boolean;
|
isNote?: boolean;
|
||||||
emojiUrls?: string[];
|
emojiUrls?: string[];
|
||||||
rootScale?: number;
|
rootScale?: number;
|
||||||
nyaize: boolean | 'account';
|
nyaize: boolean | 'respect';
|
||||||
parsedNodes?: mfm.MfmNode[] | null;
|
parsedNodes?: mfm.MfmNode[] | null;
|
||||||
enableEmojiMenu?: boolean;
|
enableEmojiMenu?: boolean;
|
||||||
enableEmojiMenuReaction?: boolean;
|
enableEmojiMenuReaction?: boolean;
|
||||||
|
@ -45,7 +46,7 @@ type MfmProps = {
|
||||||
// eslint-disable-next-line import/no-default-export
|
// eslint-disable-next-line import/no-default-export
|
||||||
export default function(props: MfmProps) {
|
export default function(props: MfmProps) {
|
||||||
const isNote = props.isNote ?? true;
|
const isNote = props.isNote ?? true;
|
||||||
const shouldNyaize = props.nyaize ? props.nyaize === 'account' ? props.author?.isCat : false : false;
|
const shouldNyaize = props.nyaize ? props.nyaize === 'respect' ? props.author?.isCat : false : false;
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||||
if (props.text == null || props.text === '') return;
|
if (props.text == null || props.text === '') return;
|
||||||
|
@ -238,6 +239,34 @@ export default function(props: MfmProps) {
|
||||||
style = `background-color: #${color};`;
|
style = `background-color: #${color};`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'ruby': {
|
||||||
|
if (token.children.length === 1) {
|
||||||
|
const child = token.children[0];
|
||||||
|
const text = child.type === 'text' ? child.props.text : '';
|
||||||
|
return h('ruby', {}, [text.split(' ')[0], h('rt', text.split(' ')[1])]);
|
||||||
|
} else {
|
||||||
|
const rt = token.children.at(-1)!;
|
||||||
|
const text = rt.type === 'text' ? rt.props.text : '';
|
||||||
|
return h('ruby', {}, [...genEl(token.children.slice(0, token.children.length - 1), scale), h('rt', text.trim())]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
case 'unixtime': {
|
||||||
|
const child = token.children[0];
|
||||||
|
const unixtime = parseInt(child.type === 'text' ? child.props.text : '');
|
||||||
|
return h('span', {
|
||||||
|
style: 'display: inline-block; font-size: 90%; border: solid 1px var(--divider); border-radius: 999px; padding: 4px 10px 4px 6px;',
|
||||||
|
}, [
|
||||||
|
h('i', {
|
||||||
|
class: 'ti ti-clock',
|
||||||
|
style: 'margin-right: 0.25em;',
|
||||||
|
}),
|
||||||
|
h(MkTime, {
|
||||||
|
key: Math.random(),
|
||||||
|
time: unixtime * 1000,
|
||||||
|
mode: 'detail',
|
||||||
|
}),
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (style == null) {
|
if (style == null) {
|
||||||
return h('span', {}, ['$[', token.props.name, ' ', ...genEl(token.children, scale), ']']);
|
return h('span', {}, ['$[', token.props.name, ' ', ...genEl(token.children, scale), ']']);
|
||||||
|
|
|
@ -49,8 +49,15 @@ const relative = $computed<string>(() => {
|
||||||
ago >= 3600 ? i18n.t('_ago.hoursAgo', { n: Math.round(ago / 3600).toString() }) :
|
ago >= 3600 ? i18n.t('_ago.hoursAgo', { n: Math.round(ago / 3600).toString() }) :
|
||||||
ago >= 60 ? i18n.t('_ago.minutesAgo', { n: (~~(ago / 60)).toString() }) :
|
ago >= 60 ? i18n.t('_ago.minutesAgo', { n: (~~(ago / 60)).toString() }) :
|
||||||
ago >= 10 ? i18n.t('_ago.secondsAgo', { n: (~~(ago % 60)).toString() }) :
|
ago >= 10 ? i18n.t('_ago.secondsAgo', { n: (~~(ago % 60)).toString() }) :
|
||||||
ago >= -1 ? i18n.ts._ago.justNow :
|
ago >= -3 ? i18n.ts._ago.justNow :
|
||||||
i18n.ts._ago.future);
|
ago < -31536000 ? i18n.t('_timeIn.years', { n: Math.round(-ago / 31536000).toString() }) :
|
||||||
|
ago < -2592000 ? i18n.t('_timeIn.months', { n: Math.round(-ago / 2592000).toString() }) :
|
||||||
|
ago < -604800 ? i18n.t('_timeIn.weeks', { n: Math.round(-ago / 604800).toString() }) :
|
||||||
|
ago < -86400 ? i18n.t('_timeIn.days', { n: Math.round(-ago / 86400).toString() }) :
|
||||||
|
ago < -3600 ? i18n.t('_timeIn.hours', { n: Math.round(-ago / 3600).toString() }) :
|
||||||
|
ago < -60 ? i18n.t('_timeIn.minutes', { n: (~~(-ago / 60)).toString() }) :
|
||||||
|
i18n.t('_timeIn.seconds', { n: (~~(-ago % 60)).toString() })
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
let tickId: number;
|
let tickId: number;
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
|
|
||||||
import { miLocalStorage } from '@/local-storage.js';
|
import { miLocalStorage } from '@/local-storage.js';
|
||||||
|
|
||||||
const address = new URL(location.href);
|
const address = new URL(document.querySelector<HTMLMetaElement>('meta[property="instance_url"]')?.content || location.href);
|
||||||
const siteName = document.querySelector<HTMLMetaElement>('meta[property="og:site_name"]')?.content;
|
const siteName = document.querySelector<HTMLMetaElement>('meta[property="og:site_name"]')?.content;
|
||||||
|
|
||||||
export const host = address.host;
|
export const host = address.host;
|
||||||
export const hostname = address.hostname;
|
export const hostname = address.hostname;
|
||||||
export const url = address.origin;
|
export const url = address.origin;
|
||||||
export const apiUrl = url + '/api';
|
export const apiUrl = location.origin + '/api';
|
||||||
export const wsUrl = url.replace('http://', 'ws://').replace('https://', 'wss://') + '/streaming';
|
export const wsOrigin = location.origin;
|
||||||
export const lang = miLocalStorage.getItem('lang') ?? 'ja-JP';
|
export const lang = miLocalStorage.getItem('lang') ?? 'ja-JP';
|
||||||
export const langs = _LANGS_;
|
export const langs = _LANGS_;
|
||||||
const preParseLocale = miLocalStorage.getItem('locale');
|
const preParseLocale = miLocalStorage.getItem('locale');
|
||||||
|
|
|
@ -95,3 +95,5 @@ export const CURRENT_STICKY_BOTTOM = 'CURRENT_STICKY_BOTTOM';
|
||||||
export const DEFAULT_SERVER_ERROR_IMAGE_URL = 'https://xn--931a.moe/assets/error.jpg';
|
export const DEFAULT_SERVER_ERROR_IMAGE_URL = 'https://xn--931a.moe/assets/error.jpg';
|
||||||
export const DEFAULT_NOT_FOUND_IMAGE_URL = 'https://xn--931a.moe/assets/not-found.jpg';
|
export const DEFAULT_NOT_FOUND_IMAGE_URL = 'https://xn--931a.moe/assets/not-found.jpg';
|
||||||
export const DEFAULT_INFO_IMAGE_URL = 'https://xn--931a.moe/assets/info.jpg';
|
export const DEFAULT_INFO_IMAGE_URL = 'https://xn--931a.moe/assets/info.jpg';
|
||||||
|
|
||||||
|
export const MFM_TAGS = ['tada', 'jelly', 'twitch', 'shake', 'spin', 'jump', 'bounce', 'flip', 'x2', 'x3', 'x4', 'scale', 'position', 'fg', 'bg', 'font', 'blur', 'rainbow', 'sparkle', 'rotate', 'ruby', 'unixtime'];
|
||||||
|
|
|
@ -23,6 +23,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<option value="publishing">{{ i18n.ts.publishing }}</option>
|
<option value="publishing">{{ i18n.ts.publishing }}</option>
|
||||||
<option value="suspended">{{ i18n.ts.suspended }}</option>
|
<option value="suspended">{{ i18n.ts.suspended }}</option>
|
||||||
<option value="blocked">{{ i18n.ts.blocked }}</option>
|
<option value="blocked">{{ i18n.ts.blocked }}</option>
|
||||||
|
<option value="silenced">{{ i18n.ts.silence }}</option>
|
||||||
<option value="notResponding">{{ i18n.ts.notResponding }}</option>
|
<option value="notResponding">{{ i18n.ts.notResponding }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
<MkSelect v-model="sort">
|
<MkSelect v-model="sort">
|
||||||
|
@ -83,6 +84,7 @@ const pagination = {
|
||||||
state === 'publishing' ? { publishing: true } :
|
state === 'publishing' ? { publishing: true } :
|
||||||
state === 'suspended' ? { suspended: true } :
|
state === 'suspended' ? { suspended: true } :
|
||||||
state === 'blocked' ? { blocked: true } :
|
state === 'blocked' ? { blocked: true } :
|
||||||
|
state === 'silenced' ? { silenced: true } :
|
||||||
state === 'notResponding' ? { notResponding: true } :
|
state === 'notResponding' ? { notResponding: true } :
|
||||||
{}),
|
{}),
|
||||||
})),
|
})),
|
||||||
|
@ -91,6 +93,7 @@ const pagination = {
|
||||||
function getStatus(instance) {
|
function getStatus(instance) {
|
||||||
if (instance.isSuspended) return 'Suspended';
|
if (instance.isSuspended) return 'Suspended';
|
||||||
if (instance.isBlocked) return 'Blocked';
|
if (instance.isBlocked) return 'Blocked';
|
||||||
|
if (instance.isSilenced) return 'Silenced';
|
||||||
if (instance.isNotResponding) return 'Error';
|
if (instance.isNotResponding) return 'Error';
|
||||||
return 'Alive';
|
return 'Alive';
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ import MkSuperMenu from '@/components/MkSuperMenu.vue';
|
||||||
import MkInfo from '@/components/MkInfo.vue';
|
import MkInfo from '@/components/MkInfo.vue';
|
||||||
import { instance } from '@/instance.js';
|
import { instance } from '@/instance.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
import { lookupUser } from '@/scripts/lookup-user.js';
|
import { lookupUser, lookupUserByEmail } from '@/scripts/lookup-user.js';
|
||||||
import { useRouter } from '@/router.js';
|
import { useRouter } from '@/router.js';
|
||||||
import { definePageMetadata, provideMetadataReceiver } from '@/scripts/page-metadata.js';
|
import { definePageMetadata, provideMetadataReceiver } from '@/scripts/page-metadata.js';
|
||||||
|
|
||||||
|
@ -264,7 +264,7 @@ provideMetadataReceiver((info) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const invite = () => {
|
function invite() {
|
||||||
os.api('admin/invite/create').then(x => {
|
os.api('admin/invite/create').then(x => {
|
||||||
os.alert({
|
os.alert({
|
||||||
type: 'info',
|
type: 'info',
|
||||||
|
@ -276,15 +276,21 @@ const invite = () => {
|
||||||
text: err,
|
text: err,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
const lookup = (ev) => {
|
function lookup(ev: MouseEvent) {
|
||||||
os.popupMenu([{
|
os.popupMenu([{
|
||||||
text: i18n.ts.user,
|
text: i18n.ts.user,
|
||||||
icon: 'ti ti-user',
|
icon: 'ti ti-user',
|
||||||
action: () => {
|
action: () => {
|
||||||
lookupUser();
|
lookupUser();
|
||||||
},
|
},
|
||||||
|
}, {
|
||||||
|
text: `${i18n.ts.user} (${i18n.ts.email})`,
|
||||||
|
icon: 'ti ti-user',
|
||||||
|
action: () => {
|
||||||
|
lookupUserByEmail();
|
||||||
|
},
|
||||||
}, {
|
}, {
|
||||||
text: i18n.ts.note,
|
text: i18n.ts.note,
|
||||||
icon: 'ti ti-pencil',
|
icon: 'ti ti-pencil',
|
||||||
|
@ -304,7 +310,7 @@ const lookup = (ev) => {
|
||||||
alert('TODO');
|
alert('TODO');
|
||||||
},
|
},
|
||||||
}], ev.currentTarget ?? ev.target);
|
}], ev.currentTarget ?? ev.target);
|
||||||
};
|
}
|
||||||
|
|
||||||
const headerActions = $computed(() => []);
|
const headerActions = $computed(() => []);
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,11 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template #caption>{{ i18n.ts._serverSettings.fanoutTimelineDescription }}</template>
|
<template #caption>{{ i18n.ts._serverSettings.fanoutTimelineDescription }}</template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
|
|
||||||
|
<MkSwitch v-model="enableFanoutTimelineDbFallback">
|
||||||
|
<template #label>{{ i18n.ts._serverSettings.fanoutTimelineDbFallback }}</template>
|
||||||
|
<template #caption>{{ i18n.ts._serverSettings.fanoutTimelineDbFallbackDescription }}</template>
|
||||||
|
</MkSwitch>
|
||||||
|
|
||||||
<MkInput v-model="perLocalUserUserTimelineCacheMax" type="number">
|
<MkInput v-model="perLocalUserUserTimelineCacheMax" type="number">
|
||||||
<template #label>perLocalUserUserTimelineCacheMax</template>
|
<template #label>perLocalUserUserTimelineCacheMax</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
@ -171,6 +176,7 @@ let enableServiceWorker: boolean = $ref(false);
|
||||||
let swPublicKey: any = $ref(null);
|
let swPublicKey: any = $ref(null);
|
||||||
let swPrivateKey: any = $ref(null);
|
let swPrivateKey: any = $ref(null);
|
||||||
let enableFanoutTimeline: boolean = $ref(false);
|
let enableFanoutTimeline: boolean = $ref(false);
|
||||||
|
let enableFanoutTimelineDbFallback: boolean = $ref(false);
|
||||||
let perLocalUserUserTimelineCacheMax: number = $ref(0);
|
let perLocalUserUserTimelineCacheMax: number = $ref(0);
|
||||||
let perRemoteUserUserTimelineCacheMax: number = $ref(0);
|
let perRemoteUserUserTimelineCacheMax: number = $ref(0);
|
||||||
let perUserHomeTimelineCacheMax: number = $ref(0);
|
let perUserHomeTimelineCacheMax: number = $ref(0);
|
||||||
|
@ -192,6 +198,7 @@ async function init(): Promise<void> {
|
||||||
swPublicKey = meta.swPublickey;
|
swPublicKey = meta.swPublickey;
|
||||||
swPrivateKey = meta.swPrivateKey;
|
swPrivateKey = meta.swPrivateKey;
|
||||||
enableFanoutTimeline = meta.enableFanoutTimeline;
|
enableFanoutTimeline = meta.enableFanoutTimeline;
|
||||||
|
enableFanoutTimelineDbFallback = meta.enableFanoutTimelineDbFallback;
|
||||||
perLocalUserUserTimelineCacheMax = meta.perLocalUserUserTimelineCacheMax;
|
perLocalUserUserTimelineCacheMax = meta.perLocalUserUserTimelineCacheMax;
|
||||||
perRemoteUserUserTimelineCacheMax = meta.perRemoteUserUserTimelineCacheMax;
|
perRemoteUserUserTimelineCacheMax = meta.perRemoteUserUserTimelineCacheMax;
|
||||||
perUserHomeTimelineCacheMax = meta.perUserHomeTimelineCacheMax;
|
perUserHomeTimelineCacheMax = meta.perUserHomeTimelineCacheMax;
|
||||||
|
@ -214,6 +221,7 @@ async function save(): void {
|
||||||
swPublicKey,
|
swPublicKey,
|
||||||
swPrivateKey,
|
swPrivateKey,
|
||||||
enableFanoutTimeline,
|
enableFanoutTimeline,
|
||||||
|
enableFanoutTimelineDbFallback,
|
||||||
perLocalUserUserTimelineCacheMax,
|
perLocalUserUserTimelineCacheMax,
|
||||||
perRemoteUserUserTimelineCacheMax,
|
perRemoteUserUserTimelineCacheMax,
|
||||||
perUserHomeTimelineCacheMax,
|
perUserHomeTimelineCacheMax,
|
||||||
|
|
|
@ -18,11 +18,19 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkSpacer v-else-if="tab === 'users'" :contentMax="1200">
|
<MkSpacer v-else-if="tab === 'users'" :contentMax="1200">
|
||||||
<div class="_gaps_s">
|
<div class="_gaps_s">
|
||||||
<div v-if="role">{{ role.description }}</div>
|
<div v-if="role">{{ role.description }}</div>
|
||||||
<MkUserList :pagination="users" :extractor="(item) => item.user"/>
|
<MkUserList v-if="visible" :pagination="users" :extractor="(item) => item.user"/>
|
||||||
|
<div v-else-if="!visible" class="_fullinfo">
|
||||||
|
<img :src="infoImageUrl" class="_ghost"/>
|
||||||
|
<div>{{ i18n.ts.nothing }}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</MkSpacer>
|
</MkSpacer>
|
||||||
<MkSpacer v-else-if="tab === 'timeline'" :contentMax="700">
|
<MkSpacer v-else-if="tab === 'timeline'" :contentMax="700">
|
||||||
<MkTimeline ref="timeline" src="role" :role="props.role"/>
|
<MkTimeline v-if="visible" ref="timeline" src="role" :role="props.role"/>
|
||||||
|
<div v-else-if="!visible" class="_fullinfo">
|
||||||
|
<img :src="infoImageUrl" class="_ghost"/>
|
||||||
|
<div>{{ i18n.ts.nothing }}</div>
|
||||||
|
</div>
|
||||||
</MkSpacer>
|
</MkSpacer>
|
||||||
</MkStickyContainer>
|
</MkStickyContainer>
|
||||||
</template>
|
</template>
|
||||||
|
@ -35,7 +43,7 @@ import { definePageMetadata } from '@/scripts/page-metadata.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import MkTimeline from '@/components/MkTimeline.vue';
|
import MkTimeline from '@/components/MkTimeline.vue';
|
||||||
import { instanceName } from '@/config.js';
|
import { instanceName } from '@/config.js';
|
||||||
import { serverErrorImageUrl } from '@/instance.js';
|
import { serverErrorImageUrl, infoImageUrl } from '@/instance.js';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
role: string;
|
role: string;
|
||||||
|
@ -47,6 +55,7 @@ const props = withDefaults(defineProps<{
|
||||||
let tab = $ref(props.initialTab);
|
let tab = $ref(props.initialTab);
|
||||||
let role = $ref();
|
let role = $ref();
|
||||||
let error = $ref();
|
let error = $ref();
|
||||||
|
let visible = $ref(false);
|
||||||
|
|
||||||
watch(() => props.role, () => {
|
watch(() => props.role, () => {
|
||||||
os.api('roles/show', {
|
os.api('roles/show', {
|
||||||
|
@ -54,6 +63,7 @@ watch(() => props.role, () => {
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
role = res;
|
role = res;
|
||||||
document.title = `${role?.name} | ${instanceName}`;
|
document.title = `${role?.name} | ${instanceName}`;
|
||||||
|
visible = res.isExplorable && res.isPublic;
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
if (err.code === 'NO_SUCH_ROLE') {
|
if (err.code === 'NO_SUCH_ROLE') {
|
||||||
error = i18n.ts.noRole;
|
error = i18n.ts.noRole;
|
||||||
|
|
|
@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<FormSection first>
|
<FormSection first>
|
||||||
<template #label>{{ i18n.ts.notificationRecieveConfig }}</template>
|
<template #label>{{ i18n.ts.notificationRecieveConfig }}</template>
|
||||||
<div class="_gaps_s">
|
<div class="_gaps_s">
|
||||||
<MkFolder v-for="type in notificationTypes" :key="type">
|
<MkFolder v-for="type in notificationTypes.filter(x => !nonConfigurableNotificationTypes.includes(x))" :key="type">
|
||||||
<template #label>{{ i18n.t('_notification._types.' + type) }}</template>
|
<template #label>{{ i18n.t('_notification._types.' + type) }}</template>
|
||||||
<template #suffix>
|
<template #suffix>
|
||||||
{{
|
{{
|
||||||
|
@ -68,6 +68,8 @@ import { definePageMetadata } from '@/scripts/page-metadata.js';
|
||||||
import MkPushNotificationAllowButton from '@/components/MkPushNotificationAllowButton.vue';
|
import MkPushNotificationAllowButton from '@/components/MkPushNotificationAllowButton.vue';
|
||||||
import { notificationTypes } from '@/const.js';
|
import { notificationTypes } from '@/const.js';
|
||||||
|
|
||||||
|
const nonConfigurableNotificationTypes = ['note'];
|
||||||
|
|
||||||
let allowButton = $shallowRef<InstanceType<typeof MkPushNotificationAllowButton>>();
|
let allowButton = $shallowRef<InstanceType<typeof MkPushNotificationAllowButton>>();
|
||||||
let pushRegistrationInServer = $computed(() => allowButton?.pushRegistrationInServer);
|
let pushRegistrationInServer = $computed(() => allowButton?.pushRegistrationInServer);
|
||||||
let sendReadMessage = $computed(() => pushRegistrationInServer?.sendReadMessage || false);
|
let sendReadMessage = $computed(() => pushRegistrationInServer?.sendReadMessage || false);
|
||||||
|
|
|
@ -148,12 +148,13 @@ async function reloadAsk() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function updateRepliesAll(withReplies: boolean) {
|
async function updateRepliesAll(withReplies: boolean) {
|
||||||
const { canceled } = os.confirm({
|
const { canceled } = await os.confirm({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
text: withReplies ? i18n.ts.confirmShowRepliesAll : i18n.ts.confirmHideRepliesAll,
|
text: withReplies ? i18n.ts.confirmShowRepliesAll : i18n.ts.confirmHideRepliesAll,
|
||||||
});
|
});
|
||||||
if (canceled) return;
|
if (canceled) return;
|
||||||
await os.api('following/update-all', { withReplies });
|
|
||||||
|
os.api('following/update-all', { withReplies });
|
||||||
}
|
}
|
||||||
|
|
||||||
watch([
|
watch([
|
||||||
|
|
|
@ -26,7 +26,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<span v-if="user.isAdmin" :title="i18n.ts.isAdmin" style="color: var(--badge);"><i class="ti ti-shield"></i></span>
|
<span v-if="user.isAdmin" :title="i18n.ts.isAdmin" style="color: var(--badge);"><i class="ti ti-shield"></i></span>
|
||||||
<span v-if="user.isLocked" :title="i18n.ts.isLocked"><i class="ti ti-lock"></i></span>
|
<span v-if="user.isLocked" :title="i18n.ts.isLocked"><i class="ti ti-lock"></i></span>
|
||||||
<span v-if="user.isBot" :title="i18n.ts.isBot"><i class="ti ti-robot"></i></span>
|
<span v-if="user.isBot" :title="i18n.ts.isBot"><i class="ti ti-robot"></i></span>
|
||||||
<button v-if="!isEditingMemo && !memoDraft" class="_button add-note-button" @click="showMemoTextarea">
|
<button v-if="$i && !isEditingMemo && !memoDraft" class="_button add-note-button" @click="showMemoTextarea">
|
||||||
<i class="ti ti-edit"/> {{ i18n.ts.addMemo }}
|
<i class="ti ti-edit"/> {{ i18n.ts.addMemo }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,10 +11,9 @@ import { Plugin, noteActions, notePostInterruptors, noteViewInterruptors, postFo
|
||||||
const parser = new Parser();
|
const parser = new Parser();
|
||||||
const pluginContexts = new Map<string, Interpreter>();
|
const pluginContexts = new Map<string, Interpreter>();
|
||||||
|
|
||||||
export function install(plugin: Plugin): void {
|
export async function install(plugin: Plugin): Promise<void> {
|
||||||
// 後方互換性のため
|
// 後方互換性のため
|
||||||
if (plugin.src == null) return;
|
if (plugin.src == null) return;
|
||||||
console.info('Plugin installed:', plugin.name, 'v' + plugin.version);
|
|
||||||
|
|
||||||
const aiscript = new Interpreter(createPluginEnv({
|
const aiscript = new Interpreter(createPluginEnv({
|
||||||
plugin: plugin,
|
plugin: plugin,
|
||||||
|
@ -42,7 +41,14 @@ export function install(plugin: Plugin): void {
|
||||||
|
|
||||||
initPlugin({ plugin, aiscript });
|
initPlugin({ plugin, aiscript });
|
||||||
|
|
||||||
aiscript.exec(parser.parse(plugin.src));
|
try {
|
||||||
|
await aiscript.exec(parser.parse(plugin.src));
|
||||||
|
} catch (err) {
|
||||||
|
console.error('Plugin install failed:', plugin.name, 'v' + plugin.version);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.info('Plugin installed:', plugin.name, 'v' + plugin.version);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createPluginEnv(opts: { plugin: Plugin; storageKey: string }): Record<string, values.Value> {
|
function createPluginEnv(opts: { plugin: Plugin; storageKey: string }): Record<string, values.Value> {
|
||||||
|
|
|
@ -39,3 +39,26 @@ export async function lookupUser() {
|
||||||
notFound();
|
notFound();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function lookupUserByEmail() {
|
||||||
|
const { canceled, result } = await os.inputText({
|
||||||
|
title: i18n.ts.emailAddress,
|
||||||
|
type: 'email',
|
||||||
|
});
|
||||||
|
if (canceled) return;
|
||||||
|
|
||||||
|
try {
|
||||||
|
const user = await os.apiWithDialog('admin/accounts/find-by-email', { email: result });
|
||||||
|
|
||||||
|
os.pageWindow(`/admin/user/${user.id}`);
|
||||||
|
} catch (err) {
|
||||||
|
if (err.code === 'USER_NOT_FOUND') {
|
||||||
|
os.alert({
|
||||||
|
type: 'error',
|
||||||
|
text: i18n.ts.noSuchUser,
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
/*
|
|
||||||
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
|
||||||
*/
|
|
||||||
|
|
||||||
export const MFM_TAGS = ['tada', 'jelly', 'twitch', 'shake', 'spin', 'jump', 'bounce', 'flip', 'x2', 'x3', 'x4', 'scale', 'position', 'fg', 'bg', 'font', 'blur', 'rainbow', 'sparkle', 'rotate'];
|
|
|
@ -5,7 +5,8 @@
|
||||||
|
|
||||||
import { defaultStore } from '@/store.js';
|
import { defaultStore } from '@/store.js';
|
||||||
|
|
||||||
const cache = new Map<string, HTMLAudioElement>();
|
const ctx = new AudioContext();
|
||||||
|
const cache = new Map<string, AudioBuffer>();
|
||||||
|
|
||||||
export const soundsTypes = [
|
export const soundsTypes = [
|
||||||
null,
|
null,
|
||||||
|
@ -121,15 +122,20 @@ export const soundsTypes = [
|
||||||
'Copyright_Misskey.io/ThinaticSystem/yonderuzo3',
|
'Copyright_Misskey.io/ThinaticSystem/yonderuzo3',
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export function getAudio(file: string, useCache = true): HTMLAudioElement {
|
export async function getAudio(file: string, useCache = true) {
|
||||||
let audio: HTMLAudioElement;
|
|
||||||
if (useCache && cache.has(file)) {
|
if (useCache && cache.has(file)) {
|
||||||
audio = cache.get(file);
|
return cache.get(file)!;
|
||||||
} else {
|
|
||||||
audio = new Audio(`/client-assets/sounds/${file}.mp3`);
|
|
||||||
if (useCache) cache.set(file, audio);
|
|
||||||
}
|
}
|
||||||
return audio;
|
|
||||||
|
const response = await fetch(`/client-assets/sounds/${file}.mp3`);
|
||||||
|
const arrayBuffer = await response.arrayBuffer();
|
||||||
|
const audioBuffer = await ctx.decodeAudioData(arrayBuffer);
|
||||||
|
|
||||||
|
if (useCache) {
|
||||||
|
cache.set(file, audioBuffer);
|
||||||
|
}
|
||||||
|
|
||||||
|
return audioBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setVolume(audio: HTMLAudioElement, volume: number): HTMLAudioElement {
|
export function setVolume(audio: HTMLAudioElement, volume: number): HTMLAudioElement {
|
||||||
|
@ -145,8 +151,17 @@ export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notifica
|
||||||
playFile(sound.type, sound.volume);
|
playFile(sound.type, sound.volume);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function playFile(file: string, volume: number) {
|
export async function playFile(file: string, volume: number) {
|
||||||
const audio = setVolume(getAudio(file), volume);
|
const masterVolume = defaultStore.state.sound_masterVolume;
|
||||||
if (audio.volume === 0) return;
|
if (masterVolume === 0 || volume === 0) {
|
||||||
audio.play();
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const gainNode = ctx.createGain();
|
||||||
|
gainNode.gain.value = masterVolume * volume;
|
||||||
|
|
||||||
|
const soundSource = ctx.createBufferSource();
|
||||||
|
soundSource.buffer = await getAudio(file);
|
||||||
|
soundSource.connect(gainNode).connect(ctx.destination);
|
||||||
|
soundSource.start();
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,34 +6,18 @@
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import { markRaw } from 'vue';
|
import { markRaw } from 'vue';
|
||||||
import { $i } from '@/account.js';
|
import { $i } from '@/account.js';
|
||||||
import { url } from '@/config.js';
|
import { wsOrigin } from '@/config.js';
|
||||||
|
|
||||||
let stream: Misskey.Stream | null = null;
|
let stream: Misskey.Stream | null = null;
|
||||||
let timeoutHeartBeat: number | null = null;
|
|
||||||
|
|
||||||
export let isReloading: boolean = false;
|
|
||||||
|
|
||||||
export function useStream(): Misskey.Stream {
|
export function useStream(): Misskey.Stream {
|
||||||
if (stream) return stream;
|
if (stream) return stream;
|
||||||
|
|
||||||
stream = markRaw(new Misskey.Stream(url, $i ? {
|
stream = markRaw(new Misskey.Stream(wsOrigin, $i ? {
|
||||||
token: $i.token,
|
token: $i.token,
|
||||||
} : null));
|
} : null));
|
||||||
|
|
||||||
timeoutHeartBeat = window.setTimeout(heartbeat, 1000 * 60);
|
window.setTimeout(heartbeat, 1000 * 60);
|
||||||
|
|
||||||
return stream;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function reloadStream() {
|
|
||||||
if (!stream) return useStream();
|
|
||||||
if (timeoutHeartBeat) window.clearTimeout(timeoutHeartBeat);
|
|
||||||
isReloading = true;
|
|
||||||
|
|
||||||
stream.close();
|
|
||||||
stream.once('_connected_', () => isReloading = false);
|
|
||||||
stream.stream.reconnect();
|
|
||||||
timeoutHeartBeat = window.setTimeout(heartbeat, 1000 * 60);
|
|
||||||
|
|
||||||
return stream;
|
return stream;
|
||||||
}
|
}
|
||||||
|
@ -42,5 +26,5 @@ function heartbeat(): void {
|
||||||
if (stream != null && document.visibilityState === 'visible') {
|
if (stream != null && document.visibilityState === 'visible') {
|
||||||
stream.heartbeat();
|
stream.heartbeat();
|
||||||
}
|
}
|
||||||
timeoutHeartBeat = window.setTimeout(heartbeat, 1000 * 60);
|
window.setTimeout(heartbeat, 1000 * 60);
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,7 @@ function more(ev: MouseEvent) {
|
||||||
.bottom {
|
.bottom {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
padding: 20px 0;
|
padding-top: 20px;
|
||||||
background: var(--X14);
|
background: var(--X14);
|
||||||
-webkit-backdrop-filter: var(--blur, blur(8px));
|
-webkit-backdrop-filter: var(--blur, blur(8px));
|
||||||
backdrop-filter: var(--blur, blur(8px));
|
backdrop-filter: var(--blur, blur(8px));
|
||||||
|
@ -228,11 +228,10 @@ function more(ev: MouseEvent) {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-left: 30px;
|
padding: 20px 0 20px 30px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-top: 16px;
|
|
||||||
overflow: clip;
|
overflow: clip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -363,7 +362,7 @@ function more(ev: MouseEvent) {
|
||||||
.bottom {
|
.bottom {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
padding: 20px 0;
|
padding-top: 20px;
|
||||||
background: var(--X14);
|
background: var(--X14);
|
||||||
-webkit-backdrop-filter: var(--blur, blur(8px));
|
-webkit-backdrop-filter: var(--blur, blur(8px));
|
||||||
backdrop-filter: var(--blur, blur(8px));
|
backdrop-filter: var(--blur, blur(8px));
|
||||||
|
@ -374,7 +373,6 @@ function more(ev: MouseEvent) {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 52px;
|
height: 52px;
|
||||||
margin-bottom: 16px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
|
@ -411,6 +409,7 @@ function more(ev: MouseEvent) {
|
||||||
.account {
|
.account {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
padding: 20px 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: clip;
|
overflow: clip;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onUnmounted } from 'vue';
|
import { onUnmounted } from 'vue';
|
||||||
import { useStream, isReloading } from '@/stream.js';
|
import { useStream } from '@/stream.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import MkButton from '@/components/MkButton.vue';
|
import MkButton from '@/components/MkButton.vue';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
|
@ -27,7 +27,6 @@ let hasDisconnected = $ref(false);
|
||||||
let timeoutId = $ref<number>();
|
let timeoutId = $ref<number>();
|
||||||
|
|
||||||
function onDisconnected() {
|
function onDisconnected() {
|
||||||
if (isReloading) return;
|
|
||||||
window.clearTimeout(timeoutId);
|
window.clearTimeout(timeoutId);
|
||||||
timeoutId = window.setTimeout(() => {
|
timeoutId = window.setTimeout(() => {
|
||||||
hasDisconnected = true;
|
hasDisconnected = true;
|
||||||
|
|
|
@ -196,6 +196,18 @@ function getMenu() {
|
||||||
items = props.menu.concat(items);
|
items = props.menu.concat(items);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (props.refresher) {
|
||||||
|
items = [{
|
||||||
|
icon: 'ti ti-refresh',
|
||||||
|
text: i18n.ts.reload,
|
||||||
|
action: () => {
|
||||||
|
if (props.refresher) {
|
||||||
|
props.refresher();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}, ...items];
|
||||||
|
}
|
||||||
|
|
||||||
return items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ import { } from 'vue';
|
||||||
import XColumn from './column.vue';
|
import XColumn from './column.vue';
|
||||||
import { Column } from './deck-store.js';
|
import { Column } from './deck-store.js';
|
||||||
import MkNotes from '@/components/MkNotes.vue';
|
import MkNotes from '@/components/MkNotes.vue';
|
||||||
import { reloadStream } from '@/stream.js';
|
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
column: Column;
|
column: Column;
|
||||||
|
@ -36,7 +35,6 @@ const tlComponent: InstanceType<typeof MkNotes> = $ref();
|
||||||
function reloadTimeline() {
|
function reloadTimeline() {
|
||||||
return new Promise<void>((res) => {
|
return new Promise<void>((res) => {
|
||||||
tlComponent.pagingComponent?.reload().then(() => {
|
tlComponent.pagingComponent?.reload().then(() => {
|
||||||
reloadStream();
|
|
||||||
res();
|
res();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -16,7 +16,6 @@ import { } from 'vue';
|
||||||
import XColumn from './column.vue';
|
import XColumn from './column.vue';
|
||||||
import { Column } from './deck-store.js';
|
import { Column } from './deck-store.js';
|
||||||
import MkNotes from '@/components/MkNotes.vue';
|
import MkNotes from '@/components/MkNotes.vue';
|
||||||
import { reloadStream } from '@/stream.js';
|
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
column: Column;
|
column: Column;
|
||||||
|
@ -28,7 +27,6 @@ const tlComponent: InstanceType<typeof MkNotes> = $ref();
|
||||||
function reloadTimeline() {
|
function reloadTimeline() {
|
||||||
return new Promise<void>((res) => {
|
return new Promise<void>((res) => {
|
||||||
tlComponent.pagingComponent?.reload().then(() => {
|
tlComponent.pagingComponent?.reload().then(() => {
|
||||||
reloadStream();
|
|
||||||
res();
|
res();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1061,7 +1061,7 @@
|
||||||
"💰": ["dollar", "payment", "coins", "sale"],
|
"💰": ["dollar", "payment", "coins", "sale"],
|
||||||
"🪙": ["dollar", "payment", "coins", "sale"],
|
"🪙": ["dollar", "payment", "coins", "sale"],
|
||||||
"💳": ["money", "sales", "dollar", "bill", "payment", "shopping"],
|
"💳": ["money", "sales", "dollar", "bill", "payment", "shopping"],
|
||||||
"🪫": [],
|
"🪪": [],
|
||||||
"💎": ["blue", "ruby", "diamond", "jewelry"],
|
"💎": ["blue", "ruby", "diamond", "jewelry"],
|
||||||
"⚖": ["law", "fairness", "weight"],
|
"⚖": ["law", "fairness", "weight"],
|
||||||
"🧰": ["tools", "diy", "fix", "maintainer", "mechanic"],
|
"🧰": ["tools", "diy", "fix", "maintainer", "mechanic"],
|
||||||
|
|
|
@ -20,13 +20,13 @@
|
||||||
"url": "git+https://github.com/misskey-dev/misskey.js.git"
|
"url": "git+https://github.com/misskey-dev/misskey.js.git"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/api-extractor": "7.38.2",
|
"@microsoft/api-extractor": "7.38.3",
|
||||||
"@swc/jest": "0.2.29",
|
"@swc/jest": "0.2.29",
|
||||||
"@types/jest": "29.5.7",
|
"@types/jest": "29.5.8",
|
||||||
"@types/node": "20.8.10",
|
"@types/node": "20.9.1",
|
||||||
"@typescript-eslint/eslint-plugin": "6.9.1",
|
"@typescript-eslint/eslint-plugin": "6.11.0",
|
||||||
"@typescript-eslint/parser": "6.9.1",
|
"@typescript-eslint/parser": "6.11.0",
|
||||||
"eslint": "8.52.0",
|
"eslint": "8.53.0",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"jest-fetch-mock": "3.0.3",
|
"jest-fetch-mock": "3.0.3",
|
||||||
"jest-websocket-mock": "2.5.0",
|
"jest-websocket-mock": "2.5.0",
|
||||||
|
@ -38,8 +38,8 @@
|
||||||
"built"
|
"built"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@swc/cli": "0.1.62",
|
"@swc/cli": "0.1.63",
|
||||||
"@swc/core": "1.3.95",
|
"@swc/core": "1.3.96",
|
||||||
"eventemitter3": "5.0.1",
|
"eventemitter3": "5.0.1",
|
||||||
"reconnecting-websocket": "4.4.0"
|
"reconnecting-websocket": "4.4.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,9 +14,9 @@
|
||||||
"misskey-js": "workspace:*"
|
"misskey-js": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/parser": "6.9.1",
|
"@typescript-eslint/parser": "6.11.0",
|
||||||
"@typescript/lib-webworker": "npm:@types/serviceworker@0.0.67",
|
"@typescript/lib-webworker": "npm:@types/serviceworker@0.0.67",
|
||||||
"eslint": "8.52.0",
|
"eslint": "8.53.0",
|
||||||
"eslint-plugin-import": "2.29.0",
|
"eslint-plugin-import": "2.29.0",
|
||||||
"typescript": "5.2.2"
|
"typescript": "5.2.2"
|
||||||
},
|
},
|
||||||
|
|
2358
pnpm-lock.yaml
2358
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue