Distribute posts from remote
This commit is contained in:
parent
aa94035987
commit
ce7efc4dbb
12 changed files with 417 additions and 353 deletions
|
|
@ -2,5 +2,5 @@ import User from '../../models/user';
|
|||
import act from '../../remote/activitypub/act';
|
||||
|
||||
export default ({ data }, done) => User.findOne({ _id: data.actor })
|
||||
.then(actor => act(actor, data.outbox))
|
||||
.then(actor => act(actor, data.outbox, data.distribute))
|
||||
.then(() => done(), done);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue