aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-13 22:08:26 -0400
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-13 22:11:10 -0400
commit517c4befd8ab959697f3f6474acbaf210461fabb (patch)
treee527d980e9b99018f365c16f4b32712690f8e232 /lib
parent34982291bc2e6ecdd54fcc74d09d16f6e0929db0 (diff)
downloadpatchfoo-517c4befd8ab959697f3f6474acbaf210461fabb.tar.gz
patchfoo-517c4befd8ab959697f3f6474acbaf210461fabb.zip
update ssb-mentions for detecting bare feed names
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js4
1 files changed, 2 insertions, 2 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)