Skip to content

Commit

Permalink
Fix tootctl media remove-orphans ignoring PAPERCLIP_ROOT_PATH (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Apr 2, 2020
1 parent c3965e2 commit a9a063c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mastodon/media_cli.rb
Expand Up @@ -115,7 +115,7 @@ def remove_orphans
when :filesystem
require 'find'

root_path = ENV.fetch('RAILS_ROOT_PATH', File.join(':rails_root', 'public', 'system')).gsub(':rails_root', Rails.root.to_s)
root_path = ENV.fetch('PAPERCLIP_ROOT_PATH', File.join(':rails_root', 'public', 'system')).gsub(':rails_root', Rails.root.to_s)

Find.find(File.join(*[root_path, prefix].compact)) do |path|
next if File.directory?(path)
Expand Down

0 comments on commit a9a063c

Please sign in to comment.