595f592304
for avatars/headers, resize avatars down to 120x120 instead of 300x300. Set cache headers on S3 stuff, also make it private (aka only accessible via expiring links to prevent hotlinking)
4 lines
209 B
Ruby
4 lines
209 B
Ruby
attributes :id, :remote_url, :type
|
|
|
|
node(:url) { |media| full_asset_url(media.file.expiring_url(3600, :original)) }
|
|
node(:preview_url) { |media| full_asset_url(media.file.expiring_url(3600, :small)) }
|