mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-13 22:28:12 +09:00
Fix bug
This commit is contained in:
parent
0180976629
commit
2ab0d8d765
@ -93,7 +93,6 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<ui-select v-model="exportTarget">
|
<ui-select v-model="exportTarget">
|
||||||
<span slot="label">{{ $t('export-target') }}</span>
|
|
||||||
<option value="notes">{{ $t('export-targets.all-notes') }}</option>
|
<option value="notes">{{ $t('export-targets.all-notes') }}</option>
|
||||||
<option value="following">{{ $t('export-targets.following-list') }}</option>
|
<option value="following">{{ $t('export-targets.following-list') }}</option>
|
||||||
<option value="mute">{{ $t('export-targets.mute-list') }}</option>
|
<option value="mute">{{ $t('export-targets.mute-list') }}</option>
|
||||||
|
@ -79,6 +79,36 @@ export function createExportNotesJob(user: ILocalUser) {
|
|||||||
.save();
|
.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() {
|
export default function() {
|
||||||
if (queueAvailable && enableQueue) {
|
if (queueAvailable && enableQueue) {
|
||||||
queue.process(128, handler);
|
queue.process(128, handler);
|
||||||
|
Loading…
Reference in New Issue
Block a user