git ssb

0+

mixmix / scuttle-blog



Tree: 85899d9c65af617c7746ff686142b1bf2e513f20

Files: 85899d9c65af617c7746ff686142b1bf2e513f20 / struct.js

381 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

Built with git-ssb-web