Skip to content
Snippets Groups Projects
Unverified Commit cbfb2c0e authored by Takeshi Umeda's avatar Takeshi Umeda Committed by GitHub
Browse files

Fix tootctl media refresh (#13751)

parent af53cfd1
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,7 @@ module Mastodon
if options[:status]
scope = MediaAttachment.where(status_id: options[:status])
elsif options[:account]
username, domain = username.split('@')
username, domain = options[:account].split('@')
account = Account.find_remote(username, domain)
if account.nil?
......@@ -217,7 +217,7 @@ module Mastodon
next if media_attachment.remote_url.blank? || (!options[:force] && media_attachment.file_file_name.present?)
unless options[:dry_run]
media_attachment.reset_file!
media_attachment.file_remote_url = media_attachment.remote_url
media_attachment.save
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment