diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-05 11:09:05 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-05 11:09:05 +0900 |
| commit | d7a3b710281f19746aaccaf23c07feb700503f39 (patch) | |
| tree | 102229af5c4906d5071603f5e3311e04c2559e9c /src/models/note.ts | |
| parent | Remove Travis (diff) | |
| download | sharkey-d7a3b710281f19746aaccaf23c07feb700503f39.tar.gz sharkey-d7a3b710281f19746aaccaf23c07feb700503f39.tar.bz2 sharkey-d7a3b710281f19746aaccaf23c07feb700503f39.zip | |
投稿の最大文字数情報を設定ファイルではなくDBに保存するように
Diffstat (limited to 'src/models/note.ts')
| -rw-r--r-- | src/models/note.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/models/note.ts b/src/models/note.ts index 6856d6d07d..516045225c 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -11,7 +11,6 @@ import Reaction from './note-reaction'; import { packMany as packFileMany, IDriveFile } from './drive-file'; import Favorite from './favorite'; import Following from './following'; -import config from '../config'; import Emoji from './emoji'; const Note = db.get<INote>('notes'); @@ -27,10 +26,6 @@ Note.createIndex({ createdAt: -1 }); Note.createIndex({ score: -1 }, { sparse: true }); export default Note; -export function isValidText(text: string): boolean { - return length(text.trim()) <= config.maxNoteTextLength && text.trim() != ''; -} - export function isValidCw(text: string): boolean { return length(text.trim()) <= 100; } |