diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-21 11:08:08 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-21 11:08:08 +0900 |
| commit | f8c414aafca8e91017cf01a65c21b57c88783076 (patch) | |
| tree | 1f1bd6e2ca22cdc37d2b5d253d5b6cdecc6bd41f /src/models/note.ts | |
| parent | Update .eslintrc (diff) | |
| download | misskey-f8c414aafca8e91017cf01a65c21b57c88783076.tar.gz misskey-f8c414aafca8e91017cf01a65c21b57c88783076.tar.bz2 misskey-f8c414aafca8e91017cf01a65c21b57c88783076.zip | |
#1621
Diffstat (limited to 'src/models/note.ts')
| -rw-r--r-- | src/models/note.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/models/note.ts b/src/models/note.ts index 5070923363..1274901d45 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -324,6 +324,10 @@ export const pack = async ( // resolve promises in _note object _note = await rap(_note); + if (_note.user.isCat && _note.text) { + _note.text = _note.text.replace(/な/g, 'にゃ').replace(/ナ/g, 'ニャ'); + } + if (hide) { _note.mediaIds = []; _note.text = null; |