git ssb

0+

mixmix / scuttle-blog



Tree: cd8ac2d0fc9c1f5e2e287e2a0f67c68c8b2e417d

Files: cd8ac2d0fc9c1f5e2e287e2a0f67c68c8b2e417d / lib / getMsgContent.js

206 bytesRaw
1module.exports = function getMsgContent (obj) {
2 if (obj.value && obj.value.content) return obj.value.content
3 else if (obj.author && obj.timestamp && obj.content) return obj.content
4 else return obj
5}
6
7

Built with git-ssb-web