Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Revert "nyaizeをテキストのみに適用するように"
Browse files Browse the repository at this point in the history
This reverts commit 6f3c7db.
  • Loading branch information
sousuke0422 committed Apr 29, 2021
1 parent bec73d3 commit dadf3b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 123 deletions.
117 changes: 0 additions & 117 deletions src/mfm/to-string.ts

This file was deleted.

7 changes: 1 addition & 6 deletions src/models/repositories/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ import { SchemaType } from '../../misc/schema';
import { awaitAll } from '../../prelude/await-all';
import { Emoji } from '../entities/emoji';
import { decodeReaction, convertLegacyReactions, convertLegacyReaction } from '../../misc/reaction-lib';
import parseAcct from '../../misc/acct/parse';
import { resolveUser } from '../../remote/resolve-user';
import { parse } from '../../mfm/parse';
import { toString } from '../../mfm/to-string';

export type PackedNote = SchemaType<typeof packedNoteSchema>;

Expand Down Expand Up @@ -255,8 +251,7 @@ export class NoteRepository extends Repository<Note> {
});

if (packed.user.isCat && packed.text) {
const tokens = packed.text ? parse(packed.text) : [];
packed.text = toString(tokens, { doNyaize: true });
packed.text = nyaize(packed.text);
}
//TODO: 2020/10/28 お嬢様口調への変換追加
//2021/03/07 準備工事
Expand Down

0 comments on commit dadf3b6

Please sign in to comment.