diff --git a/backend/src/schema/resolvers/posts.js b/backend/src/schema/resolvers/posts.js index be5c89549..b37a4abd5 100644 --- a/backend/src/schema/resolvers/posts.js +++ b/backend/src/schema/resolvers/posts.js @@ -48,7 +48,7 @@ export default { }, findPosts: async (object, params, context, resolveInfo) => { params = await filterForBlockedUsers(params, context) - return neo4jgraphql(object, params, context, resolveInfo, true) + return neo4jgraphql(object, params, context, resolveInfo) }, profilePagePosts: async (object, params, context, resolveInfo) => { params = await filterForBlockedUsers(params, context) diff --git a/backend/src/schema/types/type/Post.gql b/backend/src/schema/types/type/Post.gql index 4ecca74e1..514bccb9b 100644 --- a/backend/src/schema/types/type/Post.gql +++ b/backend/src/schema/types/type/Post.gql @@ -226,8 +226,6 @@ type Query { PostsEmotionsCountByEmotion(postId: ID!, data: _EMOTEDInput!): Int! PostsEmotionsByCurrentUser(postId: ID!): [String] profilePagePosts(filter: _PostFilter, first: Int, offset: Int, orderBy: [_PostOrdering]): [Post] - isLoggedIn: Boolean! - currentUser: User findPosts(query: String!, limit: Int = 10, filter: _PostFilter): [Post]! @cypher( statement: """ diff --git a/backend/src/schema/types/type/User.gql b/backend/src/schema/types/type/User.gql index bc76bbcff..8f3011a92 100644 --- a/backend/src/schema/types/type/User.gql +++ b/backend/src/schema/types/type/User.gql @@ -161,6 +161,7 @@ type Query { ): [User] blockedUsers: [User] + isLoggedIn: Boolean! currentUser: User findUsers(query: String!,limit: Int = 10, filter: _UserFilter): [User]! @cypher( diff --git a/webapp/components/SearchInput/SearchInput.vue b/webapp/components/SearchInput/SearchInput.vue index 01da32537..a7cc6659c 100644 --- a/webapp/components/SearchInput/SearchInput.vue +++ b/webapp/components/SearchInput/SearchInput.vue @@ -44,8 +44,8 @@ - - + +
@@ -57,7 +57,7 @@ - + {{ option.title | truncate(70) }} @@ -136,11 +136,11 @@ export default { }, }, methods: { - async query(value) { - if (isEmpty(value) || value.length < 3) { - this.clear() - return - } + async query(value) { + if (isEmpty(value) || value.length < 3) { + this.clear() + return + } this.$emit('search', value) }, handleInput(e) { @@ -211,105 +211,109 @@ export default {