diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-10-28 08:37:49 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-10-28 08:37:49 +0100 |
commit | b00f60f1d3d5415b5fd536191a7ee183ae910d03 (patch) | |
tree | fa36e5f3ef4128cbf6c55b88e4ea1ddaa2dc161e /app/serializers/rest | |
parent | 008f98b30481dff2278d0687deb874f05de66b75 (diff) | |
parent | 26fe37c41460d6db3b5dd975a86c14fdd8dfadf3 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/serializers/rest')
-rw-r--r-- | app/serializers/rest/status_serializer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb index 07839c5ae..8a61c1056 100644 --- a/app/serializers/rest/status_serializer.rb +++ b/app/serializers/rest/status_serializer.rb @@ -21,6 +21,8 @@ class REST::StatusSerializer < ActiveModel::Serializer has_many :tags has_many :emojis, serializer: REST::CustomEmojiSerializer + has_one :preview_card, key: :card, serializer: REST::PreviewCardSerializer + def id object.id.to_s end |