MCPcopy
hub / github.com/schn4ck/schnack / formatWPComment

Function formatWPComment

src/importer.js:60–66  ·  view source on GitHub ↗
(comment, thread)

Source from the content-addressed store, hash-verified

58}
59
60function formatWPComment(comment, thread) {
61 return {
62 author: getWPAuthor(comment),
63 comment: getWPComment(thread, comment),
64 id: comment['wp:comment_id']
65 };
66}
67
68async function parseWP(data) {
69 const threads = data.rss.channel.item;

Callers 1

parseWPFunction · 0.85

Calls 2

getWPAuthorFunction · 0.85
getWPCommentFunction · 0.85

Tested by

no test coverage detected