他のMisskeyインスタンスにリアクション情報を伝えるように

This commit is contained in:
syuilo
2018-04-23 15:27:01 +09:00
parent 0b99483ccb
commit 02bb99ac02
6 changed files with 31 additions and 15 deletions

View File

@@ -1,4 +1,5 @@
import * as mongo from 'mongodb';
import $ from 'cafy';
import deepcopy = require('deepcopy');
import db from '../db/mongodb';
import Reaction from './note-reaction';
@@ -16,6 +17,18 @@ export interface INoteReaction {
reaction: string;
}
export const validateReaction = $().string().or([
'like',
'love',
'laugh',
'hmm',
'surprise',
'congrats',
'angry',
'confused',
'pudding'
]);
/**
* NoteReactionを物理削除します
*/