Fix channel update federation

This commit is contained in:
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

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)