summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-05 19:32:46 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-05 19:32:46 +0900
commita1b82e97230eab994c06fc7c902e71539664d3d7 (patch)
tree18501f85f8d406777a3c11ef1d938657c256b32f /src/misc
parent:art: (diff)
downloadmisskey-a1b82e97230eab994c06fc7c902e71539664d3d7.tar.gz
misskey-a1b82e97230eab994c06fc7c902e71539664d3d7.tar.bz2
misskey-a1b82e97230eab994c06fc7c902e71539664d3d7.zip
#2620
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/get-note-summary.ts6
-rw-r--r--src/misc/is-quote.ts2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/misc/get-note-summary.ts b/src/misc/get-note-summary.ts
index ec7c74cf9f..3c6f2dd3d6 100644
--- a/src/misc/get-note-summary.ts
+++ b/src/misc/get-note-summary.ts
@@ -16,9 +16,9 @@ const summarize = (note: any): string => {
// 本文
summary += note.text ? note.text : '';
- // メディアが添付されているとき
- if (note.media.length != 0) {
- summary += ` (${note.media.length}つのメディア)`;
+ // ファイルが添付されているとき
+ if (note.files.length != 0) {
+ summary += ` (${note.files.length}つのファイル)`;
}
// 投票が添付されているとき
diff --git a/src/misc/is-quote.ts b/src/misc/is-quote.ts
index 420f03a489..a99b8f6434 100644
--- a/src/misc/is-quote.ts
+++ b/src/misc/is-quote.ts
@@ -1,5 +1,5 @@
import { INote } from '../models/note';
export default function(note: INote): boolean {
- return note.renoteId != null && (note.text != null || note.poll != null || (note.mediaIds != null && note.mediaIds.length > 0));
+ return note.renoteId != null && (note.text != null || note.poll != null || (note.fileIds != null && note.fileIds.length > 0));
}