Also improve efficiency of the mastodon:maintenance:add_static_avatars task
This commit is contained in:
parent
e43071a2f9
commit
15ec4ae07b
3 changed files with 6 additions and 8 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue