forked from fedi/mastodon
80c44ed9c1
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)
5 lines
209 B
Ruby
5 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)) }
|