From b5d8462fa84aeaf341de9176b771420f2d9f2a49 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 24 Jul 2023 17:55:36 +0200 Subject: [PATCH] Fix LinkCrawlWorker crashing on `null` `created_at` (#26151) --- app/lib/link_details_extractor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/link_details_extractor.rb b/app/lib/link_details_extractor.rb index a350cadf90..ffb25db2c1 100644 --- a/app/lib/link_details_extractor.rb +++ b/app/lib/link_details_extractor.rb @@ -124,7 +124,7 @@ class LinkDetailsExtractor author_url: author_url || '', embed_url: embed_url || '', language: language, - created_at: published_at, + created_at: published_at.presence || Time.now.utc, } end