Skip to content

Commit

Permalink
Fix LinkCrawlWorker crashing on null created_at (mastodon#26151)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Jul 24, 2023
1 parent 394d1f1 commit 2dfa8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/link_details_extractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def to_preview_card_attributes
author_url: author_url || '',
embed_url: embed_url || '',
language: language,
created_at: published_at,
created_at: published_at.presence || Time.now.utc,
}
end

Expand Down

0 comments on commit 2dfa8f7

Please sign in to comment.