mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
[#1149] Publisher worker fix (atomized params
keys).
This commit is contained in:
parent
c29686309e
commit
c056736daa
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue