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

This commit is contained in:
Claire
2021-07-25 12:48:48 +02:00
18 changed files with 195 additions and 108 deletions

View File

@@ -168,7 +168,7 @@ class BackupService < BaseService
io.write(buffer)
end
end
rescue Errno::ENOENT, Seahorse::Client::NetworkingError
Rails.logger.warn "Could not backup file #{filename}: file not found"
rescue Errno::ENOENT, Seahorse::Client::NetworkingError => e
Rails.logger.warn "Could not backup file #{filename}: #{e}"
end
end

View File

@@ -104,7 +104,7 @@ class RemoveStatusService < BaseService
# because once original status is gone, reblogs will disappear
# without us being able to do all the fancy stuff
@status.reblogs.includes(:account).find_each do |reblog|
@status.reblogs.includes(:account).reorder(nil).find_each do |reblog|
RemoveStatusService.new.call(reblog, original_removed: true)
end
end