This commit is contained in:
syuilo
2018-05-21 11:08:08 +09:00
parent 14aedb07aa
commit f8c414aafc
8 changed files with 39 additions and 11 deletions

View File

@ -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;