Merge branch 'more-share-page-querys' into swn
This commit is contained in:
commit
2c5980664e
1 changed files with 4 additions and 4 deletions
|
@ -50,8 +50,8 @@ export default defineComponent({
|
||||||
|
|
||||||
title: null as string | null,
|
title: null as string | null,
|
||||||
initialText: null as string | null,
|
initialText: null as string | null,
|
||||||
reply: null as any,
|
reply: null as Misskey.entities.Note | null,
|
||||||
renote: null as any,
|
renote: null as Misskey.entities.Note | null,
|
||||||
visibility: null as string | null,
|
visibility: null as string | null,
|
||||||
localOnly: null as boolean | null,
|
localOnly: null as boolean | null,
|
||||||
files: [] as Misskey.entities.DriveFile[],
|
files: [] as Misskey.entities.DriveFile[],
|
||||||
|
@ -114,7 +114,7 @@ export default defineComponent({
|
||||||
} else if (replyUri) {
|
} else if (replyUri) {
|
||||||
const obj = await os.api('ap/show', {
|
const obj = await os.api('ap/show', {
|
||||||
uri: replyUri
|
uri: replyUri
|
||||||
}) as any;
|
});
|
||||||
if (obj.type === 'Note') {
|
if (obj.type === 'Note') {
|
||||||
this.reply = obj.object;
|
this.reply = obj.object;
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ export default defineComponent({
|
||||||
} else if (renoteUri) {
|
} else if (renoteUri) {
|
||||||
const obj = await os.api('ap/show', {
|
const obj = await os.api('ap/show', {
|
||||||
uri: renoteUri
|
uri: renoteUri
|
||||||
}) as any;
|
});
|
||||||
if (obj.type === 'Note') {
|
if (obj.type === 'Note') {
|
||||||
this.renote = obj.object;
|
this.renote = obj.object;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue