mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Fix linkify ConfigDB migration
This commit is contained in:
parent
5b1eeb06d8
commit
7045db5a50
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,7 @@ defmodule Pleroma.Repo.Migrations.AutolinkerToLinkify do
|
|||
|
||||
defp maybe_get_params() do
|
||||
with %ConfigDB{value: opts} <- ConfigDB.get_by_params(@autolinker_path),
|
||||
%{} = opts <- transform_opts(opts),
|
||||
opts <- transform_opts(opts),
|
||||
%{} = linkify_params <- Map.put(@linkify_path, :value, opts) do
|
||||
{:ok, {@autolinker_path, linkify_params}}
|
||||
end
|
||||
|
@ -33,5 +33,6 @@ defmodule Pleroma.Repo.Migrations.AutolinkerToLinkify do
|
|||
opts
|
||||
|> Enum.into(%{})
|
||||
|> Map.take(@compat_opts)
|
||||
|> Map.to_list()
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue