diff --git a/src/client/app/common/views/components/profile-editor.vue b/src/client/app/common/views/components/profile-editor.vue index 472124fa84..2c9dc54450 100644 --- a/src/client/app/common/views/components/profile-editor.vue +++ b/src/client/app/common/views/components/profile-editor.vue @@ -93,7 +93,6 @@
- {{ $t('export-target') }} diff --git a/src/queue/index.ts b/src/queue/index.ts index da1c178a00..5d3baa8243 100644 --- a/src/queue/index.ts +++ b/src/queue/index.ts @@ -79,6 +79,36 @@ export function createExportNotesJob(user: ILocalUser) { .save(); } +export function createExportFollowingJob(user: ILocalUser) { + if (!queueAvailable) throw 'queue unavailable'; + + return queue.createJob({ + type: 'exportFollowing', + user: user + }) + .save(); +} + +export function createExportMuteJob(user: ILocalUser) { + if (!queueAvailable) throw 'queue unavailable'; + + return queue.createJob({ + type: 'exportMute', + user: user + }) + .save(); +} + +export function createExportBlockingJob(user: ILocalUser) { + if (!queueAvailable) throw 'queue unavailable'; + + return queue.createJob({ + type: 'exportBlocking', + user: user + }) + .save(); +} + export default function() { if (queueAvailable && enableQueue) { queue.process(128, handler);