Fix channel update federation

pull/6449/head
Chocobozzz 2024-06-20 08:48:24 +02:00
parent 0d0a965f8a
commit 802601c241
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import {
PlaylistObject,
VideoObject
} from '@peertube/peertube-models'
import { isAccountActor } from '@server/helpers/actors.js'
import { isActorTypeValid } from '@server/helpers/custom-validators/activitypub/actor.js'
import { isRedundancyAccepted } from '@server/lib/redundancy.js'
import { isCacheFileObjectValid } from '../../../helpers/custom-validators/activitypub/cache-file.js'
import { sanitizeAndCheckVideoTorrentObject } from '../../../helpers/custom-validators/activitypub/videos.js'
@ -34,7 +34,7 @@ async function processUpdateActivity (options: APProcessorOptions<ActivityUpdate
return retryTransactionWrapper(processUpdateVideo, activity)
}
if (isAccountActor(objectType as ActivityPubActorType)) {
if (isActorTypeValid(objectType as ActivityPubActorType)) {
// We need more attributes
const byActorFull = await ActorModel.loadByUrlAndPopulateAccountAndChannel(byActor.url)
return retryTransactionWrapper(processUpdateActor, byActorFull, object)