他のMisskeyインスタンスにリアクション情報を伝えるように
This commit is contained in:
parent
0b99483ccb
commit
02bb99ac02
6 changed files with 31 additions and 15 deletions
|
@ -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を物理削除します
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue