From bf146b14e02f6e1188a8c37b70a29f882f0c75e1 Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 4 Jul 2018 16:23:35 -1000 Subject: Add tags page --- lib/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/app.js') diff --git a/lib/app.js b/lib/app.js index 31ef492..ca9b6b2 100644 --- a/lib/app.js +++ b/lib/app.js @@ -500,6 +500,16 @@ App.prototype.streamMyChannels = function (id, opts) { ) } +App.prototype.streamTags = function () { + return pull( + this.sbot.messagesByType({type: 'tag', reverse: true}), + this.unboxMessages(), + pull.filter(function (msg) { + return !msg.value.content.message + }) + ) +} + function compareVoted(a, b) { return b.value - a.value } -- cgit v1.2.3