diff options
author | ThibG <thib@sitedethib.com> | 2020-06-05 23:10:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 23:10:41 +0200 |
commit | 346d9b3d2eb2021b89333f1c54e8876d9a16ee24 (patch) | |
tree | 99d07943b4f2a2290b591be28f59fa4bb9fb1a1f /app/serializers/rest | |
parent | a415f44fd178c14bacae2812c68e6779772d06e8 (diff) |
Add blurhash to preview cards (#13984)
Fixes #13001
Diffstat (limited to 'app/serializers/rest')
-rw-r--r-- | app/serializers/rest/preview_card_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/preview_card_serializer.rb b/app/serializers/rest/preview_card_serializer.rb index 2df9d07a7..66ff47d22 100644 --- a/app/serializers/rest/preview_card_serializer.rb +++ b/app/serializers/rest/preview_card_serializer.rb @@ -6,7 +6,7 @@ class REST::PreviewCardSerializer < ActiveModel::Serializer attributes :url, :title, :description, :type, :author_name, :author_url, :provider_name, :provider_url, :html, :width, :height, - :image, :embed_url + :image, :embed_url, :blurhash def image object.image? ? full_asset_url(object.image.url(:original)) : nil |