enhance(frontend): 検索範囲等が指定されている時は照会/ハッシュタグページを開かないように
This commit is contained in:
parent
a1513dd0a7
commit
f84eecea96
|
@ -74,6 +74,7 @@ async function search() {
|
|||
|
||||
if (query == null || query === '') return;
|
||||
|
||||
if (!user.value && !isLocalOnly.value) {
|
||||
if (query.startsWith('https://')) {
|
||||
const promise = misskeyApi('ap/show', {
|
||||
uri: query,
|
||||
|
@ -96,6 +97,7 @@ async function search() {
|
|||
router.push(`/tags/${encodeURIComponent(query.substring(1))}`);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
notePagination.value = {
|
||||
endpoint: 'notes/search',
|
||||
|
|
|
@ -48,6 +48,8 @@ async function search() {
|
|||
|
||||
if (query == null || query === '') return;
|
||||
|
||||
if (searchOrigin.value === 'combined') {
|
||||
|
||||
if (query.startsWith('https://')) {
|
||||
const promise = misskeyApi('ap/show', {
|
||||
uri: query,
|
||||
|
@ -70,6 +72,7 @@ async function search() {
|
|||
router.push(`/user-tags/${encodeURIComponent(query.substring(1))}`);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
userPagination.value = {
|
||||
endpoint: 'users/search',
|
||||
|
|
Loading…
Reference in a new issue