diff options
author | ThibG <thib@sitedethib.com> | 2020-05-09 21:06:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-09 21:06:55 +0200 |
commit | 34756cc4e095fa4d3add5ea94c1453e6a2f33064 (patch) | |
tree | 7f2dfb522b0b20709e0518c26a7e64d05332cf12 /config | |
parent | 38b69512ffd13abc992a91e33e199881d38bc164 (diff) |
Fix "tootctl media remove-orphans" crashing on “Import” files (#13685)
* Fix "tootctl media remove-orphans" crashing on “Import” files * Also remove empty directories when removing orphaned media
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/inflections.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index c65153b0a..0667a542c 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -19,4 +19,6 @@ ActiveSupport::Inflector.inflections(:en) do |inflect| inflect.acronym 'ActivityStreams' inflect.acronym 'JsonLd' inflect.acronym 'NodeInfo' + + inflect.singular 'data', 'data' end |