diff --git a/app/serializers/upload_serializer.rb b/app/serializers/upload_serializer.rb index 938ab5b0ad5..a04300b022d 100644 --- a/app/serializers/upload_serializer.rb +++ b/app/serializers/upload_serializer.rb @@ -11,6 +11,7 @@ class UploadSerializer < ApplicationSerializer :thumbnail_height, :extension, :short_url, + :short_path, :retain_hours, :human_filesize diff --git a/spec/serializers/upload_serializer_spec.rb b/spec/serializers/upload_serializer_spec.rb index 38650009134..b0f5e6429c0 100644 --- a/spec/serializers/upload_serializer_spec.rb +++ b/spec/serializers/upload_serializer_spec.rb @@ -14,6 +14,7 @@ RSpec.describe UploadSerializer do expect(json_data['height']).to eql upload.height expect(json_data['thumbnail_width']).to eql upload.thumbnail_width expect(json_data['thumbnail_height']).to eql upload.thumbnail_height + expect(json_data['short_path']).to eql upload.short_path end context "when the upload is secure" do