Merge branch 'master' into glitch-soc/merge-upstream

This commit is contained in:
Thibaut Girka
2020-05-14 18:49:10 +02:00
162 changed files with 3312 additions and 869 deletions

View File

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

View File

@@ -13,7 +13,7 @@ module Mastodon
end
def patch
3
4
end
def flags