diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-10-18 01:46:40 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-18 01:46:40 +0900 |
| commit | 85a0f696bcea779b02749dae596fff94a1df2467 (patch) | |
| tree | 747ee51f96c7ada22a835dfc7faee0b13cdfd0e4 /src/client/scripts/search.ts | |
| parent | Fix lint (#6732) (diff) | |
| download | sharkey-85a0f696bcea779b02749dae596fff94a1df2467.tar.gz sharkey-85a0f696bcea779b02749dae596fff94a1df2467.tar.bz2 sharkey-85a0f696bcea779b02749dae596fff94a1df2467.zip | |
ActivityPubでリモートのオブジェクトをGETするときのリクエストをHTTP Signatureで署名するオプション (#6731)
* Sign ActivityPub GET
* Fix v12, v12.48.0 UI bug
Diffstat (limited to 'src/client/scripts/search.ts')
| -rw-r--r-- | src/client/scripts/search.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/scripts/search.ts b/src/client/scripts/search.ts index 45cc691fe4..fbdc32dfb1 100644 --- a/src/client/scripts/search.ts +++ b/src/client/scripts/search.ts @@ -48,6 +48,7 @@ export async function search(q?: string | null | undefined) { } if (q.startsWith('https://')) { + /* const dialog = os.dialog({ type: 'waiting', text: i18n.global.t('fetchingAsApObject') + '...', @@ -55,19 +56,20 @@ export async function search(q?: string | null | undefined) { showCancelButton: false, cancelableByBgClick: false }); + */ try { const res = await os.api('ap/show', { uri: q }); - dialog.cancel(); + //dialog.cancel(); if (res.type === 'User') { router.push(`/@${res.object.username}@${res.object.host}`); } else if (res.type === 'Note') { router.push(`/notes/${res.object.id}`); } } catch (e) { - dialog.cancel(); + //dialog.cancel(); // TODO: Show error } |