mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 21:43:45 +08:00
d7a2584c6e
Shorten all image uploads to use short urls, this is the client side implementation.
12 lines
265 B
Ruby
12 lines
265 B
Ruby
class UploadSerializer < ApplicationSerializer
|
|
attributes :id,
|
|
:url,
|
|
:original_filename,
|
|
:filesize,
|
|
:width,
|
|
:height,
|
|
:extension,
|
|
:short_url,
|
|
:retain_hours
|
|
end
|