logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 85f7ef4d13adea9d64d279d1395d17c6ebc20678
parent 48b399cedb7d46ea0f08181cfbe4df222861f65b
Author: Ivan Tashkinov <ivantashkinov@gmail.com>
Date:   Sun, 17 Jan 2021 10:57:06 +0300

[#3213] Feature lock adjustment for HashtagsTableMigrator.

Diffstat:

Mlib/pleroma/migrators/hashtags_table_migrator.ex14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/lib/pleroma/migrators/hashtags_table_migrator.ex b/lib/pleroma/migrators/hashtags_table_migrator.ex @@ -196,11 +196,17 @@ defmodule Pleroma.Migrators.HashtagsTableMigrator do defp handle_success(data_migration) do update_status(:complete) - unless data_migration.feature_lock || Config.improved_hashtag_timeline() do - Config.put(Config.improved_hashtag_timeline_path(), true) - end + cond do + data_migration.feature_lock -> + :noop + + not is_nil(Config.improved_hashtag_timeline()) -> + :noop - :ok + true -> + Config.put(Config.improved_hashtag_timeline_path(), true) + :ok + end end def failed_objects_query do