aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-07-04 16:23:35 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-07-04 16:23:35 -1000
commitbf146b14e02f6e1188a8c37b70a29f882f0c75e1 (patch)
treefdc29021cd6707e473bc96c51bbf533bf6cbcfe8 /lib/app.js
parentabfba3a58d8e9753bd2118c8cd92d95df683607e (diff)
downloadpatchfoo-bf146b14e02f6e1188a8c37b70a29f882f0c75e1.tar.gz
patchfoo-bf146b14e02f6e1188a8c37b70a29f882f0c75e1.zip
Add tags page
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js10
1 files changed, 10 insertions, 0 deletions
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
}