Browse Source

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

Fix #13401
master
Eugen Rochko 4 years ago
committed by GitHub
parent
commit
c99bc5d51b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/mastodon/media_cli.rb

+ 1
- 1
lib/mastodon/media_cli.rb 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

Loading…
Cancel
Save