feat: improve follow export
This commit is contained in:
parent
46c0280764
commit
20134a5367
7 changed files with 156 additions and 84 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue