mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-03 23:16:28 +09:00
feat: improve follow export
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import $ from 'cafy';
|
||||
import define from '../../define';
|
||||
import { createExportFollowingJob } from '@/queue/index';
|
||||
import ms from 'ms';
|
||||
@ -9,8 +10,18 @@ export const meta = {
|
||||
duration: ms('1hour'),
|
||||
max: 1,
|
||||
},
|
||||
params: {
|
||||
excludeMuting: {
|
||||
validator: $.optional.bool,
|
||||
default: false,
|
||||
},
|
||||
excludeInactive: {
|
||||
validator: $.optional.bool,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default define(meta, async (ps, user) => {
|
||||
createExportFollowingJob(user);
|
||||
createExportFollowingJob(user, ps.excludeMuting, ps.excludeInactive);
|
||||
});
|
||||
|
Reference in New Issue
Block a user