diff options
-rw-r--r-- | lib/about.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/about.js b/lib/about.js index ecaab28..1e41691 100644 --- a/lib/about.js +++ b/lib/about.js @@ -13,9 +13,11 @@ function About(app, myId, follows) { About.prototype.createAboutOpStream = function (id) { return pull( - this.app.sbot.links({dest: id, rel: 'about', values: true, reverse: true}), + this.app.sbot.links({dest: id, rel: 'about', values: true, reverse: true, private: true, meta: false}), + this.app.unboxMessages(), pull.map(function (msg) { - var c = msg.value.content || {} + var c = msg.value.content + if (typeof c !== 'object' || c === null) return [] return Object.keys(c).filter(function (key) { return key !== 'about' && key !== 'type' @@ -92,6 +94,8 @@ About.prototype.get = function (dest, cb) { rel: 'about', dest: dest, values: true, + private: true, + meta: false }) ]), self.app.unboxMessages(), |