thread visibility function: fix use of no longer used author variable
authorWilliam Pitcock <nenolod@dereferenced.org>
Wed, 15 May 2019 17:02:40 +0000 (17:02 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Wed, 15 May 2019 17:02:40 +0000 (17:02 +0000)
priv/repo/migrations/20190515222404_add_thread_visibility_function.exs

index a4daf680b2c397f2724a9ca3717be46fdc9af70c..dc9abc9989a46dbbdd2d5d399d33192e1d34628d 100644 (file)
@@ -37,7 +37,7 @@ defmodule Pleroma.Repo.Migrations.AddThreadVisibilityFunction do
         WHERE COALESCE(activity.data->'object'->>'id', activity.data->>'object') = objects.data->>'id';
 
         --- Fetch the author's AS2 following collection.
-        SELECT COALESCE(author.follower_address, '') INTO author_fa FROM users WHERE users.ap_id = activity.actor;
+        SELECT COALESCE(users.follower_address, '') INTO author_fa FROM users WHERE users.ap_id = activity.actor;
 
         --- Prepare valid recipients array.
         valid_recipients := ARRAY[actor, public];