update migration
authorWilliam Pitcock <nenolod@dereferenced.org>
Wed, 15 May 2019 16:22:52 +0000 (16:22 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Wed, 15 May 2019 16:22:52 +0000 (16:22 +0000)
priv/repo/migrations/20190515222404_add_thread_visibility_function.exs [moved from priv/repo/migrations/20190324222404_add_thread_visibility_function.exs with 97% similarity]

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 11aa47e83c44d934bcdc532e7b3d2298af76b261..a3f717b8948f3d7f5ab374a2364563a55a8a6b13 100644 (file)
@@ -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.