diff options
author | Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> | 2017-12-12 23:54:38 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-12-12 15:54:38 +0100 |
commit | f9f6918148ab2471292bcc89e14be8471b42c992 (patch) | |
tree | b4ff69905a23c91b9615fa4d081adbd0383095e4 /app | |
parent | 2a61b9f000039a7d02315cdf6bca58138861a71c (diff) |
Store preview image for embedded photo in preview cards (#5986)
The preview image would be useful to embed in timeline.
Diffstat (limited to 'app')
-rw-r--r-- | app/services/fetch_link_card_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/fetch_link_card_service.rb b/app/services/fetch_link_card_service.rb index 9f0c73858..09534d0ff 100644 --- a/app/services/fetch_link_card_service.rb +++ b/app/services/fetch_link_card_service.rb @@ -89,6 +89,7 @@ class FetchLinkCardService < BaseService when 'photo' return false unless response.respond_to?(:url) @card.embed_url = response.url + @card.image = URI.parse(response.url) @card.width = response.width.presence || 0 @card.height = response.height.presence || 0 when 'video' |