From 09357c5db169987f61575af7c1ad7d8d75601c98 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 13 Feb 2021 02:12:20 +0900 Subject: [PATCH] :v: --- src/client/pages/share.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/client/pages/share.vue b/src/client/pages/share.vue index 868e6217bc..9309bd4c1f 100644 --- a/src/client/pages/share.vue +++ b/src/client/pages/share.vue @@ -29,6 +29,7 @@ import MkButton from '@/components/ui/button.vue'; import XPostForm from '@/components/post-form.vue'; import * as os from '@/os'; import { noteVisibilities } from '../../types'; +import parseAcct from '../../misc/acct/parse'; export default defineComponent({ components: { @@ -118,15 +119,13 @@ export default defineComponent({ } })(),(async () => { const specifiedId = urlParams.get('specifiedId'); - const specifiedUsername = urlParams.get('specifiedUsername'); + const specifiedAcct = urlParams.get('specifiedAcct'); if (specifiedId) { this.specified = await os.api('users/show', { userId: specifiedId }); - } else if (specifiedUsername) { - this.specified = await os.api('users/show', { - username: specifiedUsername - }); + } else if (specifiedAcct) { + this.specified = await os.api('users/show', parseAcct(specifiedAcct)); } })(),(async () => { const fileIds = urlParams.get('fileIds');