Remove unnecessary actor existance check
We already checked it in the signature checker
This commit is contained in:
parent
f2659ae0b0
commit
1cfa8d6809
|
@ -1 +0,0 @@
|
|||
*.json
|
|
@ -1,8 +0,0 @@
|
|||
printWidth: 140
|
||||
tabWidth: 2
|
||||
useTabs: false
|
||||
semi: false
|
||||
singleQuote: true
|
||||
trailingComma: false
|
||||
bracketSpacing: true
|
||||
arrowParens: always
|
|
@ -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()) {
|
||||
|
|
|
@ -30,6 +30,8 @@ export class VideosRedundancyScheduler extends AbstractScheduler {
|
|||
this.executing = true
|
||||
|
||||
for (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
|
||||
|
|
Loading…
Reference in New Issue