From 9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 8 Nov 2020 16:49:23 +0900 Subject: autoWatch機能を削除 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/note/polls/vote.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/services/note/polls') diff --git a/src/services/note/polls/vote.ts b/src/services/note/polls/vote.ts index 7350c813af..bfcaaa09be 100644 --- a/src/services/note/polls/vote.ts +++ b/src/services/note/polls/vote.ts @@ -1,8 +1,7 @@ -import watch from '../../../services/note/watch'; import { publishNoteStream } from '../../stream'; import { User } from '../../../models/entities/user'; import { Note } from '../../../models/entities/note'; -import { PollVotes, Users, NoteWatchings, Polls, UserProfiles } from '../../../models'; +import { PollVotes, NoteWatchings, Polls } from '../../../models'; import { Not } from 'typeorm'; import { genId } from '../../../misc/gen-id'; import { createNotification } from '../../create-notification'; @@ -68,11 +67,4 @@ export default async function(user: User, note: Note, choice: number) { }); } }); - - const profile = await UserProfiles.findOne(user.id); - - // ローカルユーザーが投票した場合この投稿をWatchする - if (Users.isLocalUser(user) && profile!.autoWatch) { - watch(user.id, note); - } } -- cgit v1.2.3-freya