commit
fb99be79b9
2 changed files with 15 additions and 0 deletions
|
@ -65,6 +65,11 @@ async function search() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (query.match(/^@[a-z0-9_.-]+@[a-z0-9_.-]+$/i)) {
|
||||||
|
router.push(`/${query}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
userPagination.value = {
|
userPagination.value = {
|
||||||
endpoint: 'users/search',
|
endpoint: 'users/search',
|
||||||
limit: 10,
|
limit: 10,
|
||||||
|
|
|
@ -117,6 +117,16 @@ async function search() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (query.match(/^@[a-z0-9_.-]+@[a-z0-9_.-]+$/i)) {
|
||||||
|
router.push(`/${query}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (query.startsWith('#')) {
|
||||||
|
router.push(`/tags/${encodeURIComponent(query.substring(1))}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
notePagination.value = {
|
notePagination.value = {
|
||||||
endpoint: 'notes/search',
|
endpoint: 'notes/search',
|
||||||
limit: 10,
|
limit: 10,
|
||||||
|
|
Loading…
Reference in a new issue