projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Migrations: generate unset user keys
[akkoma]
/
lib
/
pleroma
/
web
/
activity_pub
/
object_validators
/
tag_validator.ex
diff --git
a/lib/pleroma/web/activity_pub/object_validators/tag_validator.ex
b/lib/pleroma/web/activity_pub/object_validators/tag_validator.ex
index 7510215851346810f3a86f1e33ae6ff1f7d39620..e7a7c1fc258bfb7ee35a95105d05534fed9c419c 100644
(file)
--- 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,12
@@
defmodule Pleroma.Web.ActivityPub.ObjectValidators.TagValidator do
|> validate_required([:type, :name, :icon])
end
|> validate_required([:type, :name, :icon])
end
+ def changeset(struct, %{"type" => _} = data) do
+ struct
+ |> cast(data, [])
+ |> Map.put(:action, :ignore)
+ end
+
def icon_changeset(struct, data) do
struct
|> cast(data, [:type, :url])
def icon_changeset(struct, data) do
struct
|> cast(data, [:type, :url])