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

Function createPostInMultipleSources

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected