Implement unfollow by remote account
This commit is contained in:
parent
1a347ae9a0
commit
6b66ec1231
6 changed files with 108 additions and 37 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue