Refactor
This commit is contained in:
parent
e8bde94e5b
commit
cd2542e0fd
99 changed files with 111 additions and 111 deletions
|
|
@ -5,8 +5,8 @@ import User, { isLocalUser, pack as packUser, ILocalUser } from '../../models/us
|
|||
import Following from '../../models/following';
|
||||
import event from '../../common/event';
|
||||
import notify from '../../common/notify';
|
||||
import context from '../../common/remote/activitypub/renderer/context';
|
||||
import render from '../../common/remote/activitypub/renderer/follow';
|
||||
import context from '../../remote/activitypub/renderer/context';
|
||||
import render from '../../remote/activitypub/renderer/follow';
|
||||
import config from '../../conf';
|
||||
|
||||
export default ({ data }, done) => Following.findOne({ _id: data.following }).then(({ followerId, followeeId }) => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import User from '../../models/user';
|
||||
import act from '../../common/remote/activitypub/act';
|
||||
import act from '../../remote/activitypub/act';
|
||||
|
||||
export default ({ data }, done) => User.findOne({ _id: data.actor })
|
||||
.then(actor => act(actor, data.outbox))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue