From e27f9b00e6e0eb7e9865371771cc9cf9f1d13f5f Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Sun, 23 Oct 2022 01:18:58 +0200 Subject: [PATCH] remove location from group fragment, remove search type from search string on search page --- .../_new/features/SearchResults/SearchResults.vue | 8 ++++---- webapp/graphql/Fragments.js | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/webapp/components/_new/features/SearchResults/SearchResults.vue b/webapp/components/_new/features/SearchResults/SearchResults.vue index dadbd5aac..37d928311 100644 --- a/webapp/components/_new/features/SearchResults/SearchResults.vue +++ b/webapp/components/_new/features/SearchResults/SearchResults.vue @@ -305,7 +305,7 @@ export default { variables() { const { firstHashtags, hashtagsOffset, search } = this return { - query: search, + query: search.replace(/^([!@#&])/, ''), firstHashtags, hashtagsOffset, } @@ -333,7 +333,7 @@ export default { variables() { const { firstUsers, usersOffset, search } = this return { - query: search, + query: search.replace(/^([!@#&])/, ''), firstUsers, usersOffset, } @@ -355,7 +355,7 @@ export default { variables() { const { firstPosts, postsOffset, search } = this return { - query: search, + query: search.replace(/^([!@#&])/, ''), firstPosts, postsOffset, } @@ -377,7 +377,7 @@ export default { variables() { const { firstGroups, groupsOffset, search } = this return { - query: search, + query: search.replace(/^([!@#&])/, ''), firstGroups, groupsOffset, } diff --git a/webapp/graphql/Fragments.js b/webapp/graphql/Fragments.js index 87d90fbfc..23d2c11d3 100644 --- a/webapp/graphql/Fragments.js +++ b/webapp/graphql/Fragments.js @@ -81,9 +81,6 @@ export const groupFragment = gql` icon } locationName - location { - name: name${lang} - } myRole } `