mirror of https://github.com/Chocobozzz/PeerTube
Fix channel update federation
parent
0d0a965f8a
commit
802601c241
|
@ -7,7 +7,7 @@ import {
|
||||||
PlaylistObject,
|
PlaylistObject,
|
||||||
VideoObject
|
VideoObject
|
||||||
} from '@peertube/peertube-models'
|
} 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 { isRedundancyAccepted } from '@server/lib/redundancy.js'
|
||||||
import { isCacheFileObjectValid } from '../../../helpers/custom-validators/activitypub/cache-file.js'
|
import { isCacheFileObjectValid } from '../../../helpers/custom-validators/activitypub/cache-file.js'
|
||||||
import { sanitizeAndCheckVideoTorrentObject } from '../../../helpers/custom-validators/activitypub/videos.js'
|
import { sanitizeAndCheckVideoTorrentObject } from '../../../helpers/custom-validators/activitypub/videos.js'
|
||||||
|
@ -34,7 +34,7 @@ async function processUpdateActivity (options: APProcessorOptions<ActivityUpdate
|
||||||
return retryTransactionWrapper(processUpdateVideo, activity)
|
return retryTransactionWrapper(processUpdateVideo, activity)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isAccountActor(objectType as ActivityPubActorType)) {
|
if (isActorTypeValid(objectType as ActivityPubActorType)) {
|
||||||
// We need more attributes
|
// We need more attributes
|
||||||
const byActorFull = await ActorModel.loadByUrlAndPopulateAccountAndChannel(byActor.url)
|
const byActorFull = await ActorModel.loadByUrlAndPopulateAccountAndChannel(byActor.url)
|
||||||
return retryTransactionWrapper(processUpdateActor, byActorFull, object)
|
return retryTransactionWrapper(processUpdateActor, byActorFull, object)
|
||||||
|
|
Loading…
Reference in New Issue