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/create.ts | |
| parent | Fix #6819 (diff) | |
| download | sharkey-9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed.tar.gz sharkey-9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed.tar.bz2 sharkey-9d1fa3f20259cf7c303d49d5aae8e1fecdafc7ed.zip | |
autoWatch機能を削除
Diffstat (limited to 'src/services/note/create.ts')
| -rw-r--r-- | src/services/note/create.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts index c8e3db540d..f6593996e9 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -5,7 +5,6 @@ import renderNote from '../../remote/activitypub/renderer/note'; import renderCreate from '../../remote/activitypub/renderer/create'; import renderAnnounce from '../../remote/activitypub/renderer/announce'; import { renderActivity } from '../../remote/activitypub/renderer'; -import watch from './watch'; import { parse } from '../../mfm/parse'; import { resolveUser } from '../../remote/resolve-user'; import config from '../../config'; @@ -340,18 +339,11 @@ export default async (user: User, data: Option, silent = false) => new Promise<N await createMentionedEvents(mentionedUsers, note, nm); - const profile = await UserProfiles.findOne(user.id).then(ensure); - // If has in reply to note if (data.reply) { // Fetch watchers nmRelatedPromises.push(notifyToWatchersOfReplyee(data.reply, user, nm)); - // この投稿をWatchする - if (Users.isLocalUser(user) && profile.autoWatch) { - watch(user.id, data.reply); - } - // 通知 if (data.reply.userHost === null) { nm.push(data.reply.userId, 'reply'); @@ -371,11 +363,6 @@ export default async (user: User, data: Option, silent = false) => new Promise<N // Fetch watchers nmRelatedPromises.push(notifyToWatchersOfRenotee(data.renote, user, nm, type)); - // この投稿をWatchする - if (Users.isLocalUser(user) && profile.autoWatch) { - watch(user.id, data.renote); - } - // Publish event if ((user.id !== data.renote.userId) && data.renote.userHost === null) { publishMainStream(data.renote.userId, 'renote', noteObj); |