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'
+import { getOrCreateAccountAndServer } from '../account'
async function processDeleteActivity (activity: ActivityDelete) {
- const account = await getOrCreateAccount(activity.actor)
+ const account = await getOrCreateAccountAndServer(activity.actor)
if (account.url === activity.id) {
return processDeleteAccount(account)