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 { 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)
|
await Redis.Instance.addVideoView(video.id)
|
||||||
|
|
||||||
if (video.isOwned()) {
|
if (video.isOwned()) {
|
||||||
|
|
|
@ -30,6 +30,8 @@ export class VideosRedundancyScheduler extends AbstractScheduler {
|
||||||
this.executing = true
|
this.executing = true
|
||||||
|
|
||||||
for (const obj of CONFIG.REDUNDANCY.VIDEOS.STRATEGIES) {
|
for (const obj of CONFIG.REDUNDANCY.VIDEOS.STRATEGIES) {
|
||||||
|
if (!isTestInstance()) logger.info('Running redundancy scheduler for strategy %s.', obj.strategy)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const videoToDuplicate = await this.findVideoToDuplicate(obj)
|
const videoToDuplicate = await this.findVideoToDuplicate(obj)
|
||||||
if (!videoToDuplicate) continue
|
if (!videoToDuplicate) continue
|
||||||
|
|
Loading…
Reference in New Issue