MCPcopy Create free account
hub / github.com/dailydotdev/apps / checkCanBoostByUser

Function checkCanBoostByUser

packages/shared/src/graphql/posts.ts:1354–1356  ·  view source on GitHub ↗
(post: Post, userId: string)

Source from the content-addressed store, hash-verified

1352};
1353
1354export const checkCanBoostByUser = (post: Post, userId: string) =>
1355 (post?.author?.id && post?.author?.id === userId) ||
1356 (post?.scout?.id && post?.scout?.id === userId);
1357
1358export const useCanBoostPost = (post: Post) => {
1359 const { user } = useAuthContext();

Callers 1

useCanBoostPostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected