From 37075988ce85f1a3a24c1a74d660bb25a3c087b8 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 14 Feb 2022 22:39:40 -0600 Subject: [PATCH] uploads: fix page_url for null strategy. Fix the null source strategy setting the page URL. The page URL is expected to be nil when we can't determine the page containing the image URL. Fixes the upload_media_assets.page_url field being filled for uploads from unknown sites. --- app/logical/sources/strategies/null.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/sources/strategies/null.rb b/app/logical/sources/strategies/null.rb index df5cf1b07..7197a285e 100644 --- a/app/logical/sources/strategies/null.rb +++ b/app/logical/sources/strategies/null.rb @@ -8,7 +8,7 @@ module Sources end def page_url - url + nil end def canonical_url