[#1149] Publisher worker fix (atomized `params` keys).
authorIvan Tashkinov <ivantashkinov@gmail.com>
Fri, 23 Aug 2019 13:11:39 +0000 (16:11 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Fri, 23 Aug 2019 13:11:39 +0000 (16:11 +0300)
lib/pleroma/workers/publisher.ex

index 0a908458916065e049953c09f45c2c1ab51524b4..00fae99c723d949e7d32f212b9282c74ffd60494 100644 (file)
@@ -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