Fix regression in tootctl media remove-orphans (#13405)

Fix #13401
This commit is contained in:
Eugen Rochko 2020-04-06 14:11:47 +02:00 committed by GitHub
parent 0773a512ac
commit c99bc5d51b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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