move the public addressing from 'cc' to 'to'; I think the prior was interpreted by mastodon as unlisted
This commit is contained in:
parent
d15e9436ee
commit
cd03938d22
1 changed files with 3 additions and 3 deletions
|
@ -31,11 +31,11 @@ router.post('/', net.validators.activity, net.security.verifySignature, function
|
||||||
toDo.saveObject = true
|
toDo.saveObject = true
|
||||||
pub.actor.getOrCreateActor(req.user, true)
|
pub.actor.getOrCreateActor(req.user, true)
|
||||||
.then(user => {
|
.then(user => {
|
||||||
const to = [user.followers]
|
const to = [
|
||||||
const cc = [
|
user.followers,
|
||||||
pub.utils.actorFromActivity(req.body),
|
|
||||||
'https://www.w3.org/ns/activitystreams#Public'
|
'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)
|
const announce = pub.activity.build('Announce', user.id, req.body.object.id, to, cc)
|
||||||
return pub.activity.addToOutbox(user, announce)
|
return pub.activity.addToOutbox(user, announce)
|
||||||
}).catch(e => console.log(e))
|
}).catch(e => console.log(e))
|
||||||
|
|
Loading…
Reference in a new issue