X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=inline;f=priv%2Frepo%2Fmigrations%2F20190515222404_add_thread_visibility_function.exs;fp=priv%2Frepo%2Fmigrations%2F20190324222404_add_thread_visibility_function.exs;h=a3f717b8948f3d7f5ab374a2364563a55a8a6b13;hb=12f45e2a8907c74c6b65d866bc3bab547b31edfa;hp=11aa47e83c44d934bcdc532e7b3d2298af76b261;hpb=0aada88b5594b6714b8d65f8bee9c325d77d6e7b;p=akkoma diff --git a/priv/repo/migrations/20190324222404_add_thread_visibility_function.exs b/priv/repo/migrations/20190515222404_add_thread_visibility_function.exs similarity index 97% rename from priv/repo/migrations/20190324222404_add_thread_visibility_function.exs rename to priv/repo/migrations/20190515222404_add_thread_visibility_function.exs index 11aa47e83..a3f717b89 100644 --- a/priv/repo/migrations/20190324222404_add_thread_visibility_function.exs +++ b/priv/repo/migrations/20190515222404_add_thread_visibility_function.exs @@ -21,8 +21,9 @@ defmodule Pleroma.Repo.Migrations.AddThreadVisibilityFunction do LOOP --- Ensure that we have an activity before continuing. + --- If we don't, the thread is not satisfiable. IF activity IS NULL THEN - RETURN true; + RETURN false; END IF; --- We only care about Create activities.