From 58cd6d811c22ab2eba24513595e176ecc91fad28 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 18 Nov 2018 19:22:04 -1000 Subject: List enemies (mutually blocked) as described in %OQNVmPmJiNRwT/FxCVxWQ09yQgPY1f20wjp50KnjFM8=.sha256 --- lib/serve.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index 0ca35a6..3db1c3c 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -879,7 +879,11 @@ Serve.prototype.tags = function (path) { Serve.prototype.contacts = function (path) { var self = this var id = String(path).substr(1) - var contacts = self.app.contacts.createContactStreams({id: id, msgIds: true}) + var contacts = self.app.contacts.createContactStreams({ + id: id, + msgIds: true, + enemies: true + }) var render = self.app.render pull( @@ -895,7 +899,11 @@ Serve.prototype.contacts = function (path) { ph('h4', {}, 'Blocks'), render.friendsList('/contacts/')(contacts.blocks), ph('h4', {}, 'Blocked by'), - render.friendsList('/contacts/')(contacts.blockers) + render.friendsList('/contacts/')(contacts.blockers), + contacts.enemies ? [ + ph('h4', {}, 'Enemies'), + render.friendsList('/contacts/')(contacts.enemies), + ] : '' ]) ]), this.wrapPage('contacts: ' + id), -- cgit v1.2.3