TagValidator: Allow unrecognized Tag types

This commit is contained in:
silverpill 2022-12-29 01:12:32 +00:00
parent 2bc6911139
commit c7dc5ce85c

View File

@ -68,6 +68,9 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.TagValidator do
|> validate_required([:type, :name, :icon])
end
# Fallback
def changeset(struct, data), do: cast(struct, data, [:type, :name])
def icon_changeset(struct, data) do
struct
|> cast(data, [:type, :url])