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:
parent
5cd8054542
commit
25ed141c7c
21 changed files with 144 additions and 113 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue