1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-29 07:18:13 +09:00
This commit is contained in:
syuilo 2019-02-06 21:21:49 +09:00
parent 0ed43e1bdf
commit f4c4d53bbb
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
2 changed files with 30 additions and 1 deletions

View File

@ -93,7 +93,6 @@
<div>
<ui-select v-model="exportTarget">
<span slot="label">{{ $t('export-target') }}</span>
<option value="notes">{{ $t('export-targets.all-notes') }}</option>
<option value="following">{{ $t('export-targets.following-list') }}</option>
<option value="mute">{{ $t('export-targets.mute-list') }}</option>

View File

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