ActivityPub-federated video streaming platform using P2P directly in your web browser
Remove unnecessary actor existance check
Chocobozzz1cfa8d6809d9
diff --git a/.prettierignore b/.prettierignoredeleted file mode 100644index a6c57f5fb2..0000000000--- a/.prettierignore+++ /dev/null@@ -1 +0,0 @@-*.jsondiff --git a/.prettierrc.yml b/.prettierrc.ymldeleted file mode 100644index d8379671fd..0000000000--- a/.prettierrc.yml+++ /dev/null@@ -1,8 +0,0 @@-printWidth: 140-tabWidth: 2-useTabs: false-semi: false-singleQuote: true-trailingComma: false-bracketSpacing: true-arrowParens: alwaysdiff --git a/server/lib/activitypub/process/process-create.ts b/server/lib/activitypub/process/process-create.tsindex 5197dac734..cff8dcfc68 100644--- a/server/lib/activitypub/process/process-create.ts+++ b/server/lib/activitypub/process/process-create.ts@@ -90,9 +90,6 @@ async function processCreateView (byActor: ActorModel, activity: ActivityCreate)}const { video } = await getOrCreateVideoAndAccountAndChannel(options)- const actorExists = await ActorModel.isActorUrlExist(view.actor)- if (actorExists === false) throw new Error('Unknown actor ' + view.actor)-await Redis.Instance.addVideoView(video.id)if (video.isOwned()) {diff --git a/server/lib/schedulers/videos-redundancy-scheduler.ts b/server/lib/schedulers/videos-redundancy-scheduler.tsindex 9606517129..998d2295ae 100644--- a/server/lib/schedulers/videos-redundancy-scheduler.ts+++ b/server/lib/schedulers/videos-redundancy-scheduler.ts@@ -30,6 +30,8 @@ export class VideosRedundancyScheduler extends AbstractScheduler {this.executing = truefor (const obj of CONFIG.REDUNDANCY.VIDEOS.STRATEGIES) {+ if (!isTestInstance()) logger.info('Running redundancy scheduler for strategy %s.', obj.strategy)+try {const videoToDuplicate = await this.findVideoToDuplicate(obj)if (!videoToDuplicate) continue