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.
This commit is contained in:
evazion
2022-02-14 22:39:40 -06:00
parent 27d71f2727
commit 37075988ce

View File

@@ -8,7 +8,7 @@ module Sources
end
def page_url
url
nil
end
def canonical_url