From e695cdde75d56dba937432e3aabfd5504519cc51 Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Tue, 4 Sep 2018 11:35:33 -0700 Subject: [PATCH] add a default for image_url on Sources::Strategies#canonical_url --- app/logical/sources/strategies/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/sources/strategies/base.rb b/app/logical/sources/strategies/base.rb index e2c0f312a..36be7d6ae 100644 --- a/app/logical/sources/strategies/base.rb +++ b/app/logical/sources/strategies/base.rb @@ -66,7 +66,7 @@ module Sources # This will be the url stored in posts. Typically this is the page # url, but on some sites it may be preferable to store the image url. def canonical_url - page_url + page_url || image_url end # A link to the artist's profile page on the site.