This commit is contained in:
tamaina 2021-02-13 03:29:55 +09:00
parent b87840e733
commit 66417c8753
1 changed files with 2 additions and 3 deletions

View File

@ -13,7 +13,7 @@
:initial-local-only="localOnly"
:reply="reply"
:renote="renote"
:specified="specified"
:visible-users="visibleUsers"
@posted="state = 'posted'"
class="_panel"
/>
@ -50,7 +50,6 @@ export default defineComponent({
initialText: null as string | null,
reply: null as any,
renote: null as any,
specified: null as any,
visibility: null as string | null,
localOnly: null as boolean | null,
files: null as any[] | null,
@ -86,7 +85,7 @@ export default defineComponent({
...(visibleUserIds ? visibleUserIds.split(',').map(userId => ({ userId })) : []),
...(visibleAccts ? visibleAccts.split(',').map(parseAcct) : [])
].map(q => os.api('users/show', q)
.catch(() => Error(`invalid user query: ${JSON.stringify(q)}`)))
.catch(() => Error(`invalid user query: ${JSON.stringify(q)}`)));
}
const localOnly = urlParams.get('localOnly');