mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-09 19:23:08 +02:00
commit
fb99be79b9
2 changed files with 15 additions and 0 deletions
|
@ -65,6 +65,11 @@ async function search() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (query.match(/^@[a-z0-9_.-]+@[a-z0-9_.-]+$/i)) {
|
||||
router.push(`/${query}`);
|
||||
return;
|
||||
}
|
||||
|
||||
userPagination.value = {
|
||||
endpoint: 'users/search',
|
||||
limit: 10,
|
||||
|
|
|
@ -117,6 +117,16 @@ async function search() {
|
|||
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 = {
|
||||
endpoint: 'notes/search',
|
||||
limit: 10,
|
||||
|
|
Loading…
Reference in a new issue