mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-18 21:15:31 +02:00
refactor
This commit is contained in:
@@ -40,6 +40,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, computed } from 'vue';
|
||||
import * as Misskey from 'misskey-js';
|
||||
import MkInput from '@/components/MkInput.vue';
|
||||
import FormSection from '@/components/form/section.vue';
|
||||
import MkSwitch from '@/components/MkSwitch.vue';
|
||||
@@ -61,7 +62,7 @@ const event_reaction = ref(true);
|
||||
const event_mention = ref(true);
|
||||
|
||||
async function create(): Promise<void> {
|
||||
const events: string[] = [];
|
||||
const events = [] as Misskey.entities.UserWebhook['on'];
|
||||
if (event_follow.value) events.push('follow');
|
||||
if (event_followed.value) events.push('followed');
|
||||
if (event_note.value) events.push('note');
|
||||
|
||||
Reference in New Issue
Block a user