ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix channel update federation
Chocobozzz802601c24198
diff --git a/server/core/lib/activitypub/process/process-update.ts b/server/core/lib/activitypub/process/process-update.tsindex e96d43b708..fe75b5db05 100644--- a/server/core/lib/activitypub/process/process-update.ts+++ b/server/core/lib/activitypub/process/process-update.ts@@ -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<ActivityUpdatereturn retryTransactionWrapper(processUpdateVideo, activity)}- if (isAccountActor(objectType as ActivityPubActorType)) {+ if (isActorTypeValid(objectType as ActivityPubActorType)) {// We need more attributesconst byActorFull = await ActorModel.loadByUrlAndPopulateAccountAndChannel(byActor.url)return retryTransactionWrapper(processUpdateActor, byActorFull, object)