mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Move activitypub functions from helpers/ to lib/
This commit is contained in:
parent
5414139835
commit
892211e849
26 changed files with 341 additions and 305 deletions
|
@ -1,11 +1,11 @@
|
|||
import { ActivityDelete } from '../../../../shared/models/activitypub/activity'
|
||||
import { getOrCreateAccount } from '../../../helpers/activitypub'
|
||||
import { retryTransactionWrapper } from '../../../helpers/database-utils'
|
||||
import { logger } from '../../../helpers/logger'
|
||||
import { database as db } from '../../../initializers'
|
||||
import { AccountInstance } from '../../../models/account/account-interface'
|
||||
import { VideoChannelInstance } from '../../../models/video/video-channel-interface'
|
||||
import { VideoInstance } from '../../../models/video/video-interface'
|
||||
import { getOrCreateAccount } from '../account'
|
||||
|
||||
async function processDeleteActivity (activity: ActivityDelete) {
|
||||
const account = await getOrCreateAccount(activity.actor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue