remove location from group fragment, remove search type from search string on search page

This commit is contained in:
Moriz Wahl 2022-10-23 01:18:58 +02:00
parent fc605a6d66
commit e27f9b00e6
2 changed files with 4 additions and 7 deletions

View File

@ -305,7 +305,7 @@ export default {
variables() { variables() {
const { firstHashtags, hashtagsOffset, search } = this const { firstHashtags, hashtagsOffset, search } = this
return { return {
query: search, query: search.replace(/^([!@#&])/, ''),
firstHashtags, firstHashtags,
hashtagsOffset, hashtagsOffset,
} }
@ -333,7 +333,7 @@ export default {
variables() { variables() {
const { firstUsers, usersOffset, search } = this const { firstUsers, usersOffset, search } = this
return { return {
query: search, query: search.replace(/^([!@#&])/, ''),
firstUsers, firstUsers,
usersOffset, usersOffset,
} }
@ -355,7 +355,7 @@ export default {
variables() { variables() {
const { firstPosts, postsOffset, search } = this const { firstPosts, postsOffset, search } = this
return { return {
query: search, query: search.replace(/^([!@#&])/, ''),
firstPosts, firstPosts,
postsOffset, postsOffset,
} }
@ -377,7 +377,7 @@ export default {
variables() { variables() {
const { firstGroups, groupsOffset, search } = this const { firstGroups, groupsOffset, search } = this
return { return {
query: search, query: search.replace(/^([!@#&])/, ''),
firstGroups, firstGroups,
groupsOffset, groupsOffset,
} }

View File

@ -81,9 +81,6 @@ export const groupFragment = gql`
icon icon
} }
locationName locationName
location {
name: name${lang}
}
myRole myRole
} }
` `