diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-08 16:49:23 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-08 16:49:23 +0900 |
| commit | 9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed (patch) | |
| tree | 9bae26e351d3cc849b8f38823a3907e9e6b87d13 /src/services/note/polls | |
| parent | Fix #6819 (diff) | |
| download | sharkey-9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed.tar.gz sharkey-9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed.tar.bz2 sharkey-9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed.zip | |
autoWatch機能を削除
Diffstat (limited to 'src/services/note/polls')
| -rw-r--r-- | src/services/note/polls/vote.ts | 10 |
1 files changed, 1 insertions, 9 deletions
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); - } } |