mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-04 10:46:09 +02:00
autoWatch機能を削除
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user