Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Only create refresh job if needed

Chocobozzzf58094b2577a
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts
index 9ca0502a40..66d0abf359 100644
--- a/server/lib/activitypub/videos.ts
+++ b/server/lib/activitypub/videos.ts
@@ -180,8 +180,7 @@ async function getOrCreateVideoAndAccountAndChannel (options: {
let videoFromDatabase = await fetchVideoByUrl(videoUrl, fetchType)
if (videoFromDatabase) {
-
- if (allowRefresh === true) {
+ if (videoFromDatabase.isOutdated() && allowRefresh === true) {
const refreshOptions = {
video: videoFromDatabase,
fetchedType: fetchType,