mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 02:24:03 -05:00
Stub Vips::Error
when not using libvips (#30857)
This commit is contained in:
parent
ff08d99d4d
commit
b15a3614dc
@ -25,3 +25,11 @@ if Rails.configuration.x.use_vips
|
||||
|
||||
Vips.block_untrusted(true)
|
||||
end
|
||||
|
||||
# In some places of the code, we rescue this exception, but we don't always
|
||||
# load libvips, so it may be an undefined constant:
|
||||
unless defined?(Vips)
|
||||
module Vips
|
||||
class Error < StandardError; end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user