1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Put activity pub sends inside transactions

This commit is contained in:
Chocobozzz 2017-11-30 11:31:15 +01:00
parent 5cd8054542
commit 25ed141c7c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
21 changed files with 144 additions and 113 deletions

View file

@ -10,7 +10,7 @@ async function sendAccept (accountFollow: AccountFollowInstance, t: Transaction)
const me = accountFollow.AccountFollowing
const url = getAccountFollowAcceptActivityPubUrl(accountFollow)
const data = await acceptActivityData(url, me)
const data = acceptActivityData(url, me)
return unicastTo(data, me, follower.inboxUrl, t)
}
@ -23,7 +23,7 @@ export {
// ---------------------------------------------------------------------------
async function acceptActivityData (url: string, byAccount: AccountInstance) {
function acceptActivityData (url: string, byAccount: AccountInstance) {
const activity: ActivityAccept = {
type: 'Accept',
id: url,