aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-09-23 14:49:35 +0300
committerrinpatch <rinpatch@sdf.org>2020-09-23 14:49:35 +0300
commit1881480a085f413dc4ba100ae7d246a46bcc813c (patch)
treedc1fca446d6e2fa2188b554a1dfa31b129bc4251
parent2b9587c444e373d624d2ae12a7cab4414514359d (diff)
downloadpleroma-1881480a085f413dc4ba100ae7d246a46bcc813c.tar.gz
tmp
-rw-r--r--lib/pleroma/web/activity_pub/publisher.ex6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex
index 392a4f8af..d55854de7 100644
--- a/lib/pleroma/web/activity_pub/publisher.ex
+++ b/lib/pleroma/web/activity_pub/publisher.ex
@@ -52,9 +52,9 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
# Backwards compatibility for jobs that might have been left
# before updating.
data =
- if params["data"],
- do: params["data"],
- else: Jason.decode!(params["json"])
+ if params[:data],
+ do: params[:data],
+ else: Jason.decode!(params[:json])
Logger.debug("Federating #{id} to #{inbox}")