Implement unfollow by remote account

This commit is contained in:
Akihiko Odaki 2018-04-03 16:33:16 +09:00
parent 1a347ae9a0
commit 6b66ec1231
6 changed files with 108 additions and 37 deletions

View file

@ -1,5 +1,6 @@
import User from '../../models/user';
import act from '../../remote/activitypub/act';
import Resolver from '../../remote/activitypub/resolver';
export default ({ data }) => User.findOne({ _id: data.actor })
.then(actor => act(actor, data.outbox, false));
.then(actor => act(new Resolver(), actor, data.outbox));