mirror of https://github.com/mastodon/mastodon
Also improve efficiency of the mastodon:maintenance:add_static_avatars taskpull/1962/head
parent
e43071a2f9
commit
15ec4ae07b
@ -1,5 +1,5 @@
|
||||
attributes :id, :remote_url, :type
|
||||
|
||||
node(:url) { |media| media.file.blank? ? media.remote_url : full_asset_url(media.file.url(:original)) }
|
||||
node(:preview_url) { |media| media.file.blank? ? media.remote_url : full_asset_url(media.file.url(:small)) }
|
||||
node(:url) { |media| full_asset_url(media.file.url(:original)) }
|
||||
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
|
||||
node(:text_url) { |media| media.local? ? medium_url(media) : nil }
|
||||
|
Loading…
Reference in New Issue