Also download file

This commit is contained in:
David 2022-10-30 22:47:10 +00:00
parent 2f970e8bb7
commit d8f85dfcb6
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
end
media_attachment = MediaAttachment.create(account: @account, remote_url: src, description: handler.alts[src], focus: nil)
media_attachment.file_remote_url = src
media_attachment.download_file!
media_attachment.save
if unsupported_media_type?(media_attachment.file.content_type)
@object['content'].gsub!(src, '')