forked from AkkomaGang/akkoma
[#3213] Feature lock adjustment for HashtagsTableMigrator.
This commit is contained in:
parent
48b399cedb
commit
85f7ef4d13
1 changed files with 10 additions and 4 deletions
|
@ -196,12 +196,18 @@ defmodule Pleroma.Migrators.HashtagsTableMigrator do
|
||||||
defp handle_success(data_migration) do
|
defp handle_success(data_migration) do
|
||||||
update_status(:complete)
|
update_status(:complete)
|
||||||
|
|
||||||
unless data_migration.feature_lock || Config.improved_hashtag_timeline() do
|
cond do
|
||||||
Config.put(Config.improved_hashtag_timeline_path(), true)
|
data_migration.feature_lock ->
|
||||||
end
|
:noop
|
||||||
|
|
||||||
|
not is_nil(Config.improved_hashtag_timeline()) ->
|
||||||
|
:noop
|
||||||
|
|
||||||
|
true ->
|
||||||
|
Config.put(Config.improved_hashtag_timeline_path(), true)
|
||||||
:ok
|
:ok
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def failed_objects_query do
|
def failed_objects_query do
|
||||||
from(o in Object)
|
from(o in Object)
|
||||||
|
|
Loading…
Reference in a new issue