From 946c3a25b96a8f9a33d77e94394916aa0298e4a8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 17 Apr 2019 07:25:34 +0900 Subject: [PATCH] Clean up --- src/client/app/common/scripts/note-subscriber.ts | 1 - src/models/repositories/note.ts | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/app/common/scripts/note-subscriber.ts b/src/client/app/common/scripts/note-subscriber.ts index 02d810ded..d881fe01c 100644 --- a/src/client/app/common/scripts/note-subscriber.ts +++ b/src/client/app/common/scripts/note-subscriber.ts @@ -137,7 +137,6 @@ export default prop => ({ Vue.set(this.$_ns_target, 'deletedAt', body.deletedAt); Vue.set(this.$_ns_target, 'renote', null); this.$_ns_target.text = null; - this.$_ns_target.tags = []; this.$_ns_target.fileIds = []; this.$_ns_target.poll = null; this.$_ns_target.geo = null; diff --git a/src/models/repositories/note.ts b/src/models/repositories/note.ts index 98ed2bddc..d684b47e4 100644 --- a/src/models/repositories/note.ts +++ b/src/models/repositories/note.ts @@ -178,12 +178,11 @@ export class NoteRepository extends Repository { name: In(reactionEmojis), host: host }) : [], - tags: note.tags, fileIds: note.fileIds, files: DriveFiles.packMany(note.fileIds), replyId: note.replyId, renoteId: note.renoteId, - uri: note.uri, + uri: note.uri || undefined, ...(opts.detail ? { reply: note.replyId ? this.pack(note.replyId, meId, {