Files: 85899d9c65af617c7746ff686142b1bf2e513f20 / struct.js
381 bytesRaw
1 | const { Struct, Value, Array: MutantArray } = require('mutant') |
2 | const getMsgContent = require('./lib/getMsgContent') |
3 | |
4 | module.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