feat: improve follow export

This commit is contained in:
syuilo
2021-12-10 01:22:35 +09:00
parent 46c0280764
commit 20134a5367
7 changed files with 156 additions and 84 deletions

View File

@ -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);
});