diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-01-26 17:47:56 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-01-26 17:47:56 +0900 |
| commit | a0f8c7e94ee2de826326a630c783d5c8c39825a7 (patch) | |
| tree | 7bebc1c055a9a6b7e59798768414720ee6eb01ea | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | misskey-a0f8c7e94ee2de826326a630c783d5c8c39825a7.tar.gz misskey-a0f8c7e94ee2de826326a630c783d5c8c39825a7.tar.bz2 misskey-a0f8c7e94ee2de826326a630c783d5c8c39825a7.zip | |
Resolve #2253
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | src/client/app/common/scripts/note-subscriber.ts | 1 | ||||
| -rw-r--r-- | src/services/note/delete.ts | 13 |
3 files changed, 15 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a1ba133395..87343664e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ unreleased * 返信するときにCWを維持するかどうか設定できるように * 外部サービス認証情報の配信 * 管理画面のモデレーションのUIを強化 +* 引用投稿を削除したとき単なるRenoteとしてタイムラインに残る問題を修正 * イタリック構文の判定の改善 * テーマが反映されないことがある問題を修正 * ホームにフォロワー限定投稿が表示されない問題を修正 diff --git a/src/client/app/common/scripts/note-subscriber.ts b/src/client/app/common/scripts/note-subscriber.ts index 9545b5406b..c2b4dd6df9 100644 --- a/src/client/app/common/scripts/note-subscriber.ts +++ b/src/client/app/common/scripts/note-subscriber.ts @@ -133,6 +133,7 @@ export default prop => ({ case 'deleted': { 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 = []; diff --git a/src/services/note/delete.ts b/src/services/note/delete.ts index 9709eeaf5e..e8ce181d54 100644 --- a/src/services/note/delete.ts +++ b/src/services/note/delete.ts @@ -30,12 +30,25 @@ export default async function(user: IUser, note: INote) { text: null, tags: [], fileIds: [], + renoteId: null, poll: null, geo: null, cw: null } }); + if (note.renoteId) { + Note.update({ _id: note.renoteId }, { + $inc: { + renoteCount: -1, + score: -1 + }, + $pull: { + _quoteIds: note._id + } + }); + } + publishNoteStream(note._id, 'deleted', { deletedAt: deletedAt }); |