This commit is contained in:
parent
14aedb07aa
commit
f8c414aafc
8 changed files with 39 additions and 11 deletions
|
@ -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;
|
||||
|
|
|
@ -77,6 +77,7 @@ export interface ILocalUser extends IUserBase {
|
|||
};
|
||||
lastUsedAt: Date;
|
||||
isBot: boolean;
|
||||
isCat: boolean;
|
||||
isPro: boolean;
|
||||
twoFactorSecret: string;
|
||||
twoFactorEnabled: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue