commit: c7dc5ce85c5b143df45031d5c87eee0689da3713
parent 2bc6911139a3aee68bc29d3c9838c7730d5ae706
Author: silverpill <silverpill@firemail.cc>
Date: Thu, 29 Dec 2022 01:12:32 +0000
TagValidator: Allow unrecognized Tag types
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/pleroma/web/activity_pub/object_validators/tag_validator.ex b/lib/pleroma/web/activity_pub/object_validators/tag_validator.ex
@@ -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])