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

Function checkCanBoostByUser

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

Source from the content-addressed store, hash-verified

1437};
1438
1439export const checkCanBoostByUser = (post: Post, userId: string) =>
1440 (post?.author?.id && post?.author?.id === userId) ||
1441 (post?.scout?.id && post?.scout?.id === userId);
1442
1443export const useCanBoostPost = (post: Post) => {
1444 const { user } = useAuthContext();

Callers 1

useCanBoostPostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected