aboutsummaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorEv Bogue <ev@evbogue.com>2019-12-22 12:38:19 -0600
committerEv Bogue <ev@evbogue.com>2019-12-22 12:38:19 -0600
commitb9a1917fdbc5d79d58b4c7b9e268d555e97624ca (patch)
tree421dc9a96ed429ba13ec9d84d24f5287829ef255 /server.js
parent8a030de9eb5ca256be397311efbf58872120ec17 (diff)
make beacons go away with the heard button, also broadcast a heard to the pub
Diffstat (limited to 'server.js')
-rw-r--r--server.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server.js b/server.js
index 3ec7f5d..e47f165 100644
--- a/server.js
+++ b/server.js
@@ -166,7 +166,9 @@ bog.keys().then(key => {
if (obj.signature) {
var ad = {
author: obj.author,
+ hash: obj.hash,
name: config.fullurl,
+ pub: 'ws://' + config.url + ':' + config.wsport + '/~' + key.publicKey,
content: obj.signature,
views: obj.views
}
@@ -175,7 +177,9 @@ bog.keys().then(key => {
if (obj.box) {
var ad = {
author: obj.author,
+ hash: obj.hash,
name: config.fullurl,
+ pub: 'ws://' + config.url + ':' + config.wsport + '/~' + key.publicKey,
box: obj.box,
views: obj.views
}