From: Ivan Tashkinov Date: Fri, 23 Aug 2019 13:11:39 +0000 (+0300) Subject: [#1149] Publisher worker fix (atomized `params` keys). X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c056736daaedb2a08557ee6c6a9bcb6bf44110ca;p=akkoma [#1149] Publisher worker fix (atomized `params` keys). --- diff --git a/lib/pleroma/workers/publisher.ex b/lib/pleroma/workers/publisher.ex index 0a9084589..00fae99c7 100644 --- a/lib/pleroma/workers/publisher.ex +++ b/lib/pleroma/workers/publisher.ex @@ -18,6 +18,7 @@ defmodule Pleroma.Workers.Publisher do end def perform(%{"op" => "publish_one", "module" => module_name, "params" => params}, _job) do + params = Map.new(params, fn {k, v} -> {String.to_atom(k), v} end) Federator.perform(:publish_one, String.to_atom(module_name), params) end end