mandate published on notes
[akkoma] / lib / pleroma / web / activity_pub / object_validators / update_validator.ex
index a1fae47f58aeb84ad7baba87826a3a1a7a058eb5..2f0839c5b1569c7c07a045ef7b9d213241768f83 100644 (file)
@@ -51,7 +51,9 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.UpdateValidator do
     with actor = get_field(cng, :actor),
          object = get_field(cng, :object),
          {:ok, object_id} <- ObjectValidators.ObjectID.cast(object),
-         true <- actor == object_id do
+         actor_uri <- URI.parse(actor),
+         object_uri <- URI.parse(object_id),
+         true <- actor_uri.host == object_uri.host do
       cng
     else
       _e ->