From cd03938d229bc7e5b406d046576d08702c89cff1 Mon Sep 17 00:00:00 2001 From: william Murphy Date: Sun, 17 Nov 2019 19:56:30 -0600 Subject: [PATCH] move the public addressing from 'cc' to 'to'; I think the prior was interpreted by mastodon as unlisted --- routes/inbox.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/inbox.js b/routes/inbox.js index 209fcc1..109ceb7 100644 --- a/routes/inbox.js +++ b/routes/inbox.js @@ -31,11 +31,11 @@ router.post('/', net.validators.activity, net.security.verifySignature, function toDo.saveObject = true pub.actor.getOrCreateActor(req.user, true) .then(user => { - const to = [user.followers] - const cc = [ - pub.utils.actorFromActivity(req.body), + const to = [ + user.followers, 'https://www.w3.org/ns/activitystreams#Public' ] + const cc = [pub.utils.actorFromActivity(req.body)] const announce = pub.activity.build('Announce', user.id, req.body.object.id, to, cc) return pub.activity.addToOutbox(user, announce) }).catch(e => console.log(e))