From d8f85dfcb64ece817f629b84d330871485184806 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 30 Oct 2022 22:47:10 +0000 Subject: [PATCH] Also download file --- app/lib/activitypub/activity/create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index 0ab8bcc50..7eaf4a741 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -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, '')