This commit is contained in:
Charlotte 🦝 Delenk 2022-09-10 19:18:01 +01:00
parent cb60f14180
commit 2c6353eb4e
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -1,6 +1,6 @@
diff --git a/lib/mix/migrator.ex b/lib/mix/migrator.ex diff --git a/lib/mix/migrator.ex b/lib/mix/migrator.ex
new file mode 100644 new file mode 100644
index 000000000..87a6b2c53 index 000000000..fb61bfb34
--- /dev/null --- /dev/null
+++ b/lib/mix/migrator.ex +++ b/lib/mix/migrator.ex
@@ -0,0 +1,111 @@ @@ -0,0 +1,111 @@
@ -71,7 +71,7 @@ index 000000000..87a6b2c53
+ end + end
+ +
+ def try_create_activity(params) do + def try_create_activity(params) do
+ {:ok, object} = try_create_object(params) + {:ok, object} = try_create_object(params["object"])
+ if object do + if object do
+ try do + try do
+ {:ok, _activity, _meta} = ActivityPub.persist(params, local: true) + {:ok, _activity, _meta} = ActivityPub.persist(params, local: true)