diff options
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 12 |
1 files changed, 10 insertions, 2 deletions
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), |