diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-06-18 13:49:42 -0400 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-06-18 13:49:42 -0400 |
commit | d51ccc5142d4429b324bedb37b96fd5e2bcee4f0 (patch) | |
tree | 996342ac1325d9624f0a58106a2352b444cd5d8d /lib/about.js | |
parent | 462de772ed178e879d70a437689893ff60d1f99e (diff) | |
download | patchfoo-d51ccc5142d4429b324bedb37b96fd5e2bcee4f0.tar.gz patchfoo-d51ccc5142d4429b324bedb37b96fd5e2bcee4f0.zip |
Render tag messages
Diffstat (limited to 'lib/about.js')
-rw-r--r-- | lib/about.js | 4 |
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 |