Update api definitions

This commit is contained in:
syuilo
2018-07-17 04:36:44 +09:00
parent aacfb5e221
commit 16726789da
66 changed files with 586 additions and 156 deletions

View File

@@ -4,9 +4,17 @@ import Mute from '../../../../models/mute';
import { pack } from '../../../../models/messaging-message';
import { ILocalUser } from '../../../../models/user';
/**
* Show messaging history
*/
export const meta = {
desc: {
ja: 'Messagingの履歴を取得します。',
en: 'Show messaging history.'
},
requireCredential: true,
kind: 'messaging-read'
};
export default (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
// Get 'limit' parameter
const [limit = 10, limitErr] = $.num.optional.range(1, 100).get(params.limit);