mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
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)) }
|