mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
TagValidator: Allow unrecognized Tag types
This commit is contained in:
parent
2bc6911139
commit
c7dc5ce85c
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.TagValidator do
|
||||||
|> validate_required([:type, :name, :icon])
|
|> validate_required([:type, :name, :icon])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Fallback
|
||||||
|
def changeset(struct, data), do: cast(struct, data, [:type, :name])
|
||||||
|
|
||||||
def icon_changeset(struct, data) do
|
def icon_changeset(struct, data) do
|
||||||
struct
|
struct
|
||||||
|> cast(data, [:type, :url])
|
|> cast(data, [:type, :url])
|
||||||
|
|
Loading…
Reference in a new issue