Skip to content

Commit 7d4ec7b

Browse files
committed
fix: add user trust check
1 parent 7ef6bd7 commit 7d4ec7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/graphql/user.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const typeDef = gql`
2424
series_list: [Series]
2525
user_meta: UserMeta
2626
is_followed: Boolean
27+
is_trusted: Boolean
2728
}
2829
type UserProfile {
2930
id: ID!
@@ -122,6 +123,9 @@ export const resolvers: IResolvers<any, ApolloContext> = {
122123
if (!ctx.user_id) return false;
123124
return await userService.isFollowed(parent.id, ctx.user_id);
124125
},
126+
is_trusted: async (parent: User, _, ctx) => {
127+
return true;
128+
},
125129
},
126130
Query: {
127131
user: async (parent: any, { id, username }: any) => {

0 commit comments

Comments
 (0)