discourse/app/serializers/upload_serializer.rb
Sam d7a2584c6e FEATURE: image uploads now have short urls
Shorten all image uploads to use short urls, this is the client
side implementation.
2017-08-22 16:40:08 -04:00

12 lines
265 B
Ruby

class UploadSerializer < ApplicationSerializer
attributes :id,
:url,
:original_filename,
:filesize,
:width,
:height,
:extension,
:short_url,
:retain_hours
end