Make sure relay and anonymous actors don't automatically approve
followers Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
defmodule Mobilizon.Storage.Repo.Migrations.RepairRelayAndAnonymousActors do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
Ecto.Adapters.SQL.query!(
|
||||
Mobilizon.Storage.Repo,
|
||||
"UPDATE actors SET manually_approves_followers = true WHERE preferred_username = 'relay' and domain is null"
|
||||
)
|
||||
|
||||
Ecto.Adapters.SQL.query!(
|
||||
Mobilizon.Storage.Repo,
|
||||
"UPDATE actors SET manually_approves_followers = true WHERE preferred_username = 'anonymous' and domain is null"
|
||||
)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user