mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 11:46:18 +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
|