✌️
This commit is contained in:
parent
65a4dd15c4
commit
09357c5db1
1 changed files with 4 additions and 5 deletions
|
@ -29,6 +29,7 @@ import MkButton from '@/components/ui/button.vue';
|
||||||
import XPostForm from '@/components/post-form.vue';
|
import XPostForm from '@/components/post-form.vue';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
import { noteVisibilities } from '../../types';
|
import { noteVisibilities } from '../../types';
|
||||||
|
import parseAcct from '../../misc/acct/parse';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
|
@ -118,15 +119,13 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
})(),(async () => {
|
})(),(async () => {
|
||||||
const specifiedId = urlParams.get('specifiedId');
|
const specifiedId = urlParams.get('specifiedId');
|
||||||
const specifiedUsername = urlParams.get('specifiedUsername');
|
const specifiedAcct = urlParams.get('specifiedAcct');
|
||||||
if (specifiedId) {
|
if (specifiedId) {
|
||||||
this.specified = await os.api('users/show', {
|
this.specified = await os.api('users/show', {
|
||||||
userId: specifiedId
|
userId: specifiedId
|
||||||
});
|
});
|
||||||
} else if (specifiedUsername) {
|
} else if (specifiedAcct) {
|
||||||
this.specified = await os.api('users/show', {
|
this.specified = await os.api('users/show', parseAcct(specifiedAcct));
|
||||||
username: specifiedUsername
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
})(),(async () => {
|
})(),(async () => {
|
||||||
const fileIds = urlParams.get('fileIds');
|
const fileIds = urlParams.get('fileIds');
|
||||||
|
|
Loading…
Reference in a new issue