Saltar al contenido principal

Function: replyToPost()

function replyToPost(
context,
siteUrl,
postId,
input
): Promise<{
changed: string;
discussionId: number | undefined;
postId: number | undefined;
subscribed?: boolean;
}>;

Defined in: areas/forums/posts.ts:170

Replies to a post; returns the new post's id and its discussion's, and, when subscribe is given, the person's subscription to the discussion afterwards, read back (subscribed).

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
postIdnumber
inputPostInput & object

Returns​

Promise<{ changed: string; discussionId: number | undefined; postId: number | undefined; subscribed?: boolean; }>