git ssb

0+

mixmix / scuttle-blog



Tree: cd8ac2d0fc9c1f5e2e287e2a0f67c68c8b2e417d

Files: cd8ac2d0fc9c1f5e2e287e2a0f67c68c8b2e417d / struct.js

382 bytesRaw
1const { Struct, Value, Array: MutantArray } = require('mutant')
2const getMsgContent = require('./lib/getMsgContent')
3
4module.exports = function Blog (blogMsg) {
5 var { title, channel, summary, thumbnail } = getMsgContent(blogMsg)
6
7 return Struct({
8 title,
9 summary,
10 thumbnail,
11 channel,
12 body: Value(),
13 // sync: Value(false),
14 errors: MutantArray()
15 })
16}
17
18

Built with git-ssb-web