diff options
author | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-05-18 16:18:16 -0400 |
---|---|---|
committer | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-05-18 16:18:16 -0400 |
commit | de1eaa7c9d937a82f5330e3bf3955444411fd193 (patch) | |
tree | c6fb9e58128879c72df936661fe27279b516b6e4 | |
parent | 00fd240fdb1fc733f604bcdfe82032791458efb2 (diff) | |
download | patchfoo-de1eaa7c9d937a82f5330e3bf3955444411fd193.tar.gz patchfoo-de1eaa7c9d937a82f5330e3bf3955444411fd193.zip |
Render delete message
-rw-r--r-- | lib/render-msg.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 4a549b2..c39825d 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -391,6 +391,7 @@ RenderMsg.prototype.message = function (cb) { case 'ipfstryme': case 'cesium_geoPoint.lat': case 'cesium_geoPoint.lon': return this.astroport(cb) + case 'delete': return this.delete(cb) default: return this.object(cb) } } @@ -2502,3 +2503,14 @@ RenderMsg.prototype.astroport = function (cb) { h('code', u.toString(this.c.text)) ], cb) } + +RenderMsg.prototype.delete = function (cb) { + var done = multicb({pluck: 1, spread: true}) + var self = this + self.link(self.c.dest, function (err, link) { + return self.wrapMini([ + 'delete ', + link + ], cb) + }) +} |