aboutsummaryrefslogtreecommitdiff
path: root/lib/about.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-06-18 13:49:42 -0400
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-06-18 13:49:42 -0400
commitd51ccc5142d4429b324bedb37b96fd5e2bcee4f0 (patch)
tree996342ac1325d9624f0a58106a2352b444cd5d8d /lib/about.js
parent462de772ed178e879d70a437689893ff60d1f99e (diff)
downloadpatchfoo-d51ccc5142d4429b324bedb37b96fd5e2bcee4f0.tar.gz
patchfoo-d51ccc5142d4429b324bedb37b96fd5e2bcee4f0.zip
Render tag messages
Diffstat (limited to 'lib/about.js')
-rw-r--r--lib/about.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/about.js b/lib/about.js
index 6d04355..29ec125 100644
--- a/lib/about.js
+++ b/lib/about.js
@@ -93,6 +93,10 @@ About.prototype.get = function (dest, cb) {
var author = msg.value.author
var c = msg.value.content
if (!c) return
+ if (msg.key === dest && c.type === 'about') {
+ // don't describe an about message with itself
+ return
+ }
var about = aboutByFeed[author] || (aboutByFeed[author] = {})
if (c.name) about.name = c.name
if (c.title) about.title = c.title