闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
205 B

  1. object @media
  2. attribute :id, :type
  3. node(:url) { |media| full_asset_url(media.file.url) }
  4. node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
  5. node(:text_url) { |media| medium_url(media) }