aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 7180f7a..ca6b2ae 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -971,6 +971,7 @@ Serve.prototype.composer = function (opts, cb) {
var myId = self.app.sbot.id
var content
var unknownMentions = []
+ var unknownMentionNames = {}
try {
content = JSON.parse(data.text)
} catch (err) {
@@ -991,6 +992,8 @@ Serve.prototype.composer = function (opts, cb) {
} else if (mention.link === '@') {
// bare feed name
var name = mention.name
+ if (unknownMentionNames[name]) return false
+ unknownMentionNames[name] = true
var fullName = mention.link + name
var id = formNames[name] || self.app.getReverseNameSync(fullName)
unknownMentions.push({name: name, fullName: fullName, id: id})