Distribute posts from remote

This commit is contained in:
Akihiko Odaki 2018-04-02 17:11:14 +09:00
parent aa94035987
commit ce7efc4dbb
12 changed files with 417 additions and 353 deletions

View file

@ -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);