summaryrefslogtreecommitdiff
path: root/src/models/note.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-11 17:00:22 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-11 17:00:22 +0900
commit324a974dec58d117ff79382b947ba6df9bdf1764 (patch)
tree905c2ee7425dbc6394951b2606b4300b5d335f03 /src/models/note.ts
parent10.7.0 (diff)
downloadmisskey-324a974dec58d117ff79382b947ba6df9bdf1764.tar.gz
misskey-324a974dec58d117ff79382b947ba6df9bdf1764.tar.bz2
misskey-324a974dec58d117ff79382b947ba6df9bdf1764.zip
Fix bug
Diffstat (limited to 'src/models/note.ts')
-rw-r--r--src/models/note.ts16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/models/note.ts b/src/models/note.ts
index 5687151d80..a47fd098c7 100644
--- a/src/models/note.ts
+++ b/src/models/note.ts
@@ -386,14 +386,16 @@ export const pack = async (
return null;
}
- if (_note.replyId != null && _note.reply == null) {
- console.warn(`[DAMAGED DB] (missing) pkg: note -> reply :: ${_note.id} (reply ${_note.replyId})`);
- return null;
- }
+ if (opts.detail) {
+ if (_note.replyId != null && _note.reply == null) {
+ console.warn(`[DAMAGED DB] (missing) pkg: note -> reply :: ${_note.id} (reply ${_note.replyId})`);
+ return null;
+ }
- if (_note.renoteId != null && _note.renote == null) {
- console.warn(`[DAMAGED DB] (missing) pkg: note -> renote :: ${_note.id} (renote ${_note.renoteId})`);
- return null;
+ if (_note.renoteId != null && _note.renote == null) {
+ console.warn(`[DAMAGED DB] (missing) pkg: note -> renote :: ${_note.id} (renote ${_note.renoteId})`);
+ return null;
+ }
}
//#endregion