mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-08 01:33:57 +09:00
Update api definitions
This commit is contained in:
@ -3,9 +3,17 @@ import Favorite from '../../../../../models/favorite';
|
||||
import Note from '../../../../../models/note';
|
||||
import { ILocalUser } from '../../../../../models/user';
|
||||
|
||||
/**
|
||||
* Favorite a note
|
||||
*/
|
||||
export const meta = {
|
||||
desc: {
|
||||
ja: '指定した投稿をお気に入りに登録します。',
|
||||
en: 'Favorite a note.'
|
||||
},
|
||||
|
||||
requireCredential: true,
|
||||
|
||||
kind: 'favorite-write'
|
||||
};
|
||||
|
||||
export default (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
|
||||
// Get 'noteId' parameter
|
||||
const [noteId, noteIdErr] = $.type(ID).get(params.noteId);
|
||||
|
Reference in New Issue
Block a user