summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/share.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-02-09 10:35:28 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-02-09 10:35:28 +0900
commit7afee5977fe60f0e69e148f38974e02141c8f8c6 (patch)
treec0cb99fa15fc15734f0ab3635eae8cb027b6c2dc /packages/frontend/src/pages/share.vue
parentrefactor(client): use css modules (diff)
downloadmisskey-7afee5977fe60f0e69e148f38974e02141c8f8c6.tar.gz
misskey-7afee5977fe60f0e69e148f38974e02141c8f8c6.tar.bz2
misskey-7afee5977fe60f0e69e148f38974e02141c8f8c6.zip
feat(client): add channel column to deck
Diffstat (limited to 'packages/frontend/src/pages/share.vue')
-rw-r--r--packages/frontend/src/pages/share.vue32
1 files changed, 16 insertions, 16 deletions
diff --git a/packages/frontend/src/pages/share.vue b/packages/frontend/src/pages/share.vue
index a7e797eeab..d8b956b6d1 100644
--- a/packages/frontend/src/pages/share.vue
+++ b/packages/frontend/src/pages/share.vue
@@ -29,7 +29,7 @@ import { noteVisibilities } from 'misskey-js';
import * as Acct from 'misskey-js/built/acct';
import * as Misskey from 'misskey-js';
import MkButton from '@/components/MkButton.vue';
-import XPostForm from '@/components/MkPostForm.vue';
+import MkPostForm from '@/components/MkPostForm.vue';
import * as os from '@/os';
import { mainRouter } from '@/router';
import { definePageMetadata } from '@/scripts/page-metadata';
@@ -69,14 +69,14 @@ async function init() {
...(visibleAccts ? visibleAccts.split(',').map(Acct.parse) : []),
]
// TypeScriptの指示通りに変換する
- .map(q => 'username' in q ? { username: q.username, host: q.host === null ? undefined : q.host } : q)
- .map(q => os.api('users/show', q)
- .then(user => {
- visibleUsers.push(user);
- }, () => {
- console.error(`Invalid user query: ${JSON.stringify(q)}`);
- }),
- ),
+ .map(q => 'username' in q ? { username: q.username, host: q.host === null ? undefined : q.host } : q)
+ .map(q => os.api('users/show', q)
+ .then(user => {
+ visibleUsers.push(user);
+ }, () => {
+ console.error(`Invalid user query: ${JSON.stringify(q)}`);
+ }),
+ ),
);
}
@@ -120,13 +120,13 @@ async function init() {
if (fileIds) {
await Promise.all(
fileIds.split(',')
- .map(fileId => os.api('drive/files/show', { fileId })
- .then(file => {
- files.push(file);
- }, () => {
- console.error(`Failed to fetch a file ${fileId}`);
- }),
- ),
+ .map(fileId => os.api('drive/files/show', { fileId })
+ .then(file => {
+ files.push(file);
+ }, () => {
+ console.error(`Failed to fetch a file ${fileId}`);
+ }),
+ ),
);
}
//#endregion