diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-04-06 14:11:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 14:11:47 +0200 |
commit | c99bc5d51bb588a56c7c8cfcee3a3a5ab3841a95 (patch) | |
tree | 076b40e62878bd665121023a849d21344685bcd5 | |
parent | 0773a512ac5019663545992a3300ae7ca0974876 (diff) |
Fix regression in `tootctl media remove-orphans` (#13405)
Fix #13401
-rw-r--r-- | lib/mastodon/media_cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/media_cli.rb b/lib/mastodon/media_cli.rb index 08a8f1093..0f211f272 100644 --- a/lib/mastodon/media_cli.rb +++ b/lib/mastodon/media_cli.rb @@ -276,7 +276,7 @@ module Mastodon preload_map = Hash.new { |hash, key| hash[key] = [] } objects.map do |object| - segments = object.key.split('/').first + segments = object.key.split('/') model_name = segments.first.classify record_id = segments[2..-2].join.to_i |