Skip to content

Commit

Permalink
paramsにパラメータを渡してなかったのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Esurio committed May 11, 2024
1 parent d81bfa8 commit 192b220
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/frontend/src/pages/search.note.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,17 @@ async function search() {

notePagination.value = {
endpoint: 'notes/search',
query: searchQuery.value,
limit: 10,
userId: user.value ? user.value.id : null,
origin: searchOrigin.value,
params: {
query: searchQuery.value,
userId: user.value ? user.value.id : null,
origin: searchOrigin.value,
},
};

if (isAdvancedSearchAvailable === true && advancedSearch.value === true) {
notePagination.value.endpoint = 'notes/advanced-search';
notePagination.value.params.query = searchQuery.value;
notePagination.value.params.fileOption = isfileOnly.value;
notePagination.value.params.excludeNsfw = excludeNsfw.value;
notePagination.value.params.excludeReply = excludeReply.value;
Expand Down

0 comments on commit 192b220

Please sign in to comment.