mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-06 16:53:58 +09:00
fix
This commit is contained in:
@ -14,7 +14,7 @@ import serialize from '../../serializers/post';
|
||||
*/
|
||||
module.exports = (params, user) => new Promise(async (res, rej) => {
|
||||
// Get 'post_id' parameter
|
||||
const [postId, postIdErr] = it(params.post_id, 'id', true);
|
||||
const [postId, postIdErr] = it(params.post_id, 'id!').get();
|
||||
if (postIdErr) return rej('invalid post_id param');
|
||||
|
||||
// Get 'limit' parameter
|
||||
|
Reference in New Issue
Block a user