mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
AttachmentValidator: fix_media_type/1 fallback to application/octet-stream
This commit is contained in:
parent
09e0304b9c
commit
eba1666575
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.AttachmentValidator do
|
|||
end
|
||||
|
||||
def fix_media_type(data) do
|
||||
Map.put_new(data, "mediaType", data["mimeType"])
|
||||
Map.put_new(data, "mediaType", data["mimeType"] || "application/octet-stream")
|
||||
end
|
||||
|
||||
defp handle_href(href, mediaType, data) do
|
||||
|
|
Loading…
Reference in a new issue