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

Function createPostInMultipleSources

packages/shared/src/graphql/posts.ts:1126–1141  ·  view source on GitHub ↗
(
  variables: CreatePostInMultipleSourcesArgs,
)

Source from the content-addressed store, hash-verified

1124}>;
1125
1126export const createPostInMultipleSources = async (
1127 variables: CreatePostInMultipleSourcesArgs,
1128) => {
1129 const { image, ...rest } = variables;
1130 const sanitized = {
1131 ...rest,
1132 ...(image instanceof File && image.size > 0 ? { image } : {}),
1133 };
1134 const res = await gqlClient.request<
1135 {
1136 createPostInMultipleSources: CreatePostInMultipleSourcesResponse;
1137 },
1138 CreatePostInMultipleSourcesArgs
1139 >(CREATE_POST_IN_MULTIPLE_SOURCES, sanitized);
1140 return res.createPostInMultipleSources;
1141};
1142
1143export interface VotePollResponse {
1144 numPollVotes: number;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected