diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-30 17:02:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-30 17:02:40 +0200 |
commit | 8e0fd45e14993793c64e06682a4a05c29068d398 (patch) | |
tree | 4567d24150f1c633181095e755d3291c4b32cead /server/lib/activitypub/send/send-accept.ts | |
parent | 43c4c63937b63ed1f41b17f4cc8fe652a6d010fc (diff) | |
download | PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.tar.gz PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.tar.zst PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.zip |
Add more info logging
Diffstat (limited to 'server/lib/activitypub/send/send-accept.ts')
-rw-r--r-- | server/lib/activitypub/send/send-accept.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/lib/activitypub/send/send-accept.ts b/server/lib/activitypub/send/send-accept.ts index 44644a22f..dfee1ec3e 100644 --- a/server/lib/activitypub/send/send-accept.ts +++ b/server/lib/activitypub/send/send-accept.ts | |||
@@ -4,11 +4,14 @@ import { ActorFollowModel } from '../../../models/activitypub/actor-follow' | |||
4 | import { getActorFollowAcceptActivityPubUrl, getActorFollowActivityPubUrl } from '../url' | 4 | import { getActorFollowAcceptActivityPubUrl, getActorFollowActivityPubUrl } from '../url' |
5 | import { unicastTo } from './utils' | 5 | import { unicastTo } from './utils' |
6 | import { followActivityData } from './send-follow' | 6 | import { followActivityData } from './send-follow' |
7 | import { logger } from '../../../helpers/logger' | ||
7 | 8 | ||
8 | async function sendAccept (actorFollow: ActorFollowModel) { | 9 | async function sendAccept (actorFollow: ActorFollowModel) { |
9 | const follower = actorFollow.ActorFollower | 10 | const follower = actorFollow.ActorFollower |
10 | const me = actorFollow.ActorFollowing | 11 | const me = actorFollow.ActorFollowing |
11 | 12 | ||
13 | logger.info('Creating job to accept follower %s.', follower.url) | ||
14 | |||
12 | const followUrl = getActorFollowActivityPubUrl(actorFollow) | 15 | const followUrl = getActorFollowActivityPubUrl(actorFollow) |
13 | const followData = followActivityData(followUrl, follower, me) | 16 | const followData = followActivityData(followUrl, follower, me) |
14 | 17 | ||