Change remote media files to be downloaded outside of transactions (#21796)

This commit is contained in:
Claire
2022-12-15 18:09:48 +01:00
committed by GitHub
parent 2d12948220
commit 2644a28cb3
2 changed files with 26 additions and 18 deletions

View File

@@ -210,6 +210,8 @@ class MediaAttachment < ApplicationRecord
default_scope { order(id: :asc) }
attr_accessor :skip_download
def local?
remote_url.blank?
end