diff --git a/lib/travis/api/app/responders/image.rb b/lib/travis/api/app/responders/image.rb index c6c6a17d..44a37faa 100644 --- a/lib/travis/api/app/responders/image.rb +++ b/lib/travis/api/app/responders/image.rb @@ -11,6 +11,10 @@ module Travis::Api::App::Responders send_file(filename, type: :png, last_modified: last_modified) end + def apply? + super && resource.is_a?(Repository) + end + private def content_type