From 517c4befd8ab959697f3f6474acbaf210461fabb Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 13 Mar 2017 22:08:26 -0400 Subject: update ssb-mentions for detecting bare feed names --- lib/serve.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/serve.js b/lib/serve.js index 62aa86f..a33dd71 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -907,7 +907,7 @@ Serve.prototype.composer = function (opts, cb) { type: 'post', text: data.text, } - var mentions = ssbMentions(data.text) + var mentions = ssbMentions(data.text, {bareFeedNames: true}) if (mentions.length) { content.mentions = mentions.filter(function (mention) { var blob = blobs[mention.link] @@ -917,7 +917,7 @@ Serve.prototype.composer = function (opts, cb) { if (blob.type && blob.type !== 'application/octet-stream') mention.type = blob.type } else if (mention.link === '@') { - // bare mention + // bare feed name var name = mention.name var fullName = mention.link + name var id = formNames[name] || self.app.getReverseNameSync(fullName) diff --git a/package.json b/package.json index f5029cb..d52ebae 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "pull-stream": "^3.5.0", "ssb-avatar": "^0.2.0", "ssb-marked": "^0.6.0", - "ssb-mentions": "^0.1.0", + "ssb-mentions": "^0.2.0", "ssb-sort": "^1.0.0", "stream-to-pull-stream": "^1.7.2" }, -- cgit v1.2.3