mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Update sequelize
This commit is contained in:
@@ -37,7 +37,9 @@ async function processFollow (actor: ActorModel, targetActorURL: string) {
|
||||
if (isFollowingInstance && CONFIG.FOLLOWERS.INSTANCE.ENABLED === false) {
|
||||
logger.info('Rejecting %s because instance followers are disabled.', targetActor.url)
|
||||
|
||||
return sendReject(actor, targetActor)
|
||||
await sendReject(actor, targetActor)
|
||||
|
||||
return { actorFollow: undefined }
|
||||
}
|
||||
|
||||
const [ actorFollow, created ] = await ActorFollowModel.findOrCreate({
|
||||
|
||||
@@ -120,9 +120,11 @@ async function processUpdateActor (actor: ActorModel, activity: ActivityUpdate)
|
||||
|
||||
await actor.save({ transaction: t })
|
||||
|
||||
accountOrChannelInstance.set('name', actorAttributesToUpdate.name || actorAttributesToUpdate.preferredUsername)
|
||||
accountOrChannelInstance.set('description', actorAttributesToUpdate.summary)
|
||||
accountOrChannelInstance.set('support', actorAttributesToUpdate.support)
|
||||
accountOrChannelInstance.name = actorAttributesToUpdate.name || actorAttributesToUpdate.preferredUsername
|
||||
accountOrChannelInstance.description = actorAttributesToUpdate.summary
|
||||
|
||||
if (accountOrChannelInstance instanceof VideoChannelModel) accountOrChannelInstance.support = actorAttributesToUpdate.support
|
||||
|
||||
await accountOrChannelInstance.save({ transaction: t })
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user