自分のノートにリアクションを押せるように (#6506)

* resolve #6468

* リモートから来たセルフリアクションの対応
This commit is contained in:
Xeltica
2020-07-30 20:28:35 +09:00
committed by GitHub
parent f5d43b1f25
commit 71878f93e4
5 changed files with 3 additions and 20 deletions

View File

@@ -15,11 +15,6 @@ import { createNotification } from '../../create-notification';
import deleteReaction from './delete';
export default async (user: User, note: Note, reaction?: string) => {
// Myself
if (note.userId === user.id) {
throw new IdentifiableError('2d8e7297-1873-4c00-8404-792c68d7bef0', 'cannot react to my note');
}
reaction = await toDbReaction(reaction, user.host);
const exist = await NoteReactions.findOne({