aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/render-msg.js12
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)
+ })
+}