diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-07-04 16:23:35 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-07-04 16:23:35 -1000 |
commit | bf146b14e02f6e1188a8c37b70a29f882f0c75e1 (patch) | |
tree | fdc29021cd6707e473bc96c51bbf533bf6cbcfe8 /lib/app.js | |
parent | abfba3a58d8e9753bd2118c8cd92d95df683607e (diff) | |
download | patchfoo-bf146b14e02f6e1188a8c37b70a29f882f0c75e1.tar.gz patchfoo-bf146b14e02f6e1188a8c37b70a29f882f0c75e1.zip |
Add tags page
Diffstat (limited to 'lib/app.js')
-rw-r--r-- | lib/app.js | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 } |