add a default for image_url on Sources::Strategies#canonical_url

This commit is contained in:
Albert Yi
2018-09-04 11:35:33 -07:00
parent b0bd20c436
commit e695cdde75

View File

@@ -66,7 +66,7 @@ module Sources
# This will be the url stored in posts. Typically this is the page # 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. # url, but on some sites it may be preferable to store the image url.
def canonical_url def canonical_url
page_url page_url || image_url
end end
# A link to the artist's profile page on the site. # A link to the artist's profile page on the site.