mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Fix ownership change
This commit is contained in:
parent
1ca9f7c3f7
commit
f92e7f76d4
4 changed files with 12 additions and 10 deletions
|
@ -15,7 +15,7 @@ import { forwardVideoRelatedActivity } from '../send/utils'
|
|||
import { PlaylistObject } from '../../../../shared/models/activitypub/objects/playlist-object'
|
||||
import { createOrUpdateVideoPlaylist } from '../playlist'
|
||||
import { APProcessorOptions } from '../../../typings/activitypub-processor.model'
|
||||
import { MActorSignature } from '../../../typings/models'
|
||||
import { MActorSignature, MAccountIdActor } from '../../../typings/models'
|
||||
|
||||
async function processUpdateActivity (options: APProcessorOptions<ActivityUpdate>) {
|
||||
const { activity, byActor } = options
|
||||
|
@ -64,10 +64,13 @@ async function processUpdateVideo (actor: MActorSignature, activity: ActivityUpd
|
|||
const { video } = await getOrCreateVideoAndAccountAndChannel({ videoObject: videoObject.id, allowRefresh: false, fetchType: 'all' })
|
||||
const channelActor = await getOrCreateVideoChannelFromVideoObject(videoObject)
|
||||
|
||||
const account = actor.Account as MAccountIdActor
|
||||
account.Actor = actor
|
||||
|
||||
const updateOptions = {
|
||||
video,
|
||||
videoObject,
|
||||
account: channelActor.VideoChannel.Account,
|
||||
account,
|
||||
channel: channelActor.VideoChannel,
|
||||
overrideTo: activity.to
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue