Resolve account by signature in inbox

This commit is contained in:
Akihiko Odaki 2018-04-02 18:36:47 +09:00
parent ce7efc4dbb
commit 69763ac32b
7 changed files with 72 additions and 56 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, data.distribute))
.then(actor => act(actor, data.outbox, false))
.then(() => done(), done);