git ssb

0+

Piet / ssb-loomio



Tree: e91df8e00ca174250db3f719cc4bbf9a3b54b07c

Files: e91df8e00ca174250db3f719cc4bbf9a3b54b07c / lib / getMsgContent.js

205 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

Built with git-ssb-web