about summary refs log tree commit diff
path: root/app/serializers/rest
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-06-05 23:10:41 +0200
committerGitHub <noreply@github.com>2020-06-05 23:10:41 +0200
commit346d9b3d2eb2021b89333f1c54e8876d9a16ee24 (patch)
tree99d07943b4f2a2290b591be28f59fa4bb9fb1a1f /app/serializers/rest
parenta415f44fd178c14bacae2812c68e6779772d06e8 (diff)
Add blurhash to preview cards (#13984)
Fixes #13001
Diffstat (limited to 'app/serializers/rest')
-rw-r--r--app/serializers/rest/preview_card_serializer.rb2
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