From 44097bb3a8ed88e414eda8c62a390034e9c83cbd Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 25 Aug 2019 17:18:08 -0700 Subject: Handle private messages better in /about/ --- lib/about.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/about.js') 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(), -- cgit v1.2.3