From 2ab0d8d76557a0bb881670df9d3533598be0fd7c Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 6 Feb 2019 21:21:49 +0900 Subject: [PATCH] Fix bug --- .../views/components/profile-editor.vue | 1 - src/queue/index.ts | 30 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/client/app/common/views/components/profile-editor.vue b/src/client/app/common/views/components/profile-editor.vue index 472124fa8..2c9dc5445 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 da1c178a0..5d3baa824 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);