twitter: fix preview_urls when source url is a direct image.

Fix preview_urls returning an empty array when the source url is a
direct image from Twitter.

Also return preview_urls in /source.json.
This commit is contained in:
evazion
2020-01-21 16:32:31 -06:00
parent b60d988790
commit 60bf21ff80
3 changed files with 19 additions and 9 deletions

View File

@@ -269,6 +269,8 @@ module Sources
:artists => artists.as_json(include: :sorted_urls),
:image_url => image_url,
:image_urls => image_urls,
:preview_url => preview_url,
:preview_urls => preview_urls,
:page_url => page_url,
:canonical_url => canonical_url,
:normalized_for_artist_finder_url => normalize_for_artist_finder,