????
This commit is contained in:
parent
cb60f14180
commit
2c6353eb4e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue