diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-08 01:25:34 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-08 01:25:34 +0900 |
| commit | 2ede3c0864539945c1944ab0ee33439830ab44a4 (patch) | |
| tree | 9a5d744cb40461f3a484d0ac85f9aad229006b77 /src | |
| parent | Fix (diff) | |
| download | sharkey-2ede3c0864539945c1944ab0ee33439830ab44a4.tar.gz sharkey-2ede3c0864539945c1944ab0ee33439830ab44a4.tar.bz2 sharkey-2ede3c0864539945c1944ab0ee33439830ab44a4.zip | |
Clean up
Diffstat (limited to 'src')
| -rw-r--r-- | src/models/note.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/models/note.ts b/src/models/note.ts index 43b8753195..6c16ab054b 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -220,7 +220,6 @@ export const hideNote = async (packedNote: any, meId: mongo.ObjectID) => { packedNote.poll = null; packedNote.cw = null; packedNote.tags = []; - packedNote.tagsLower = []; packedNote.geo = null; packedNote.isHidden = true; } @@ -294,6 +293,9 @@ export const pack = async ( _note.id = _note._id; delete _note._id; + delete _note.prev; + delete _note.next; + delete _note.tagsLower; delete _note._user; delete _note._reply; delete _note._renote; |