aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
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
}