Allow to refresh instance outbox when they accept subscription
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
19
priv/repo/migrations/20200901101307_fix_relay_visibility.exs
Normal file
19
priv/repo/migrations/20200901101307_fix_relay_visibility.exs
Normal file
@@ -0,0 +1,19 @@
|
||||
defmodule Mobilizon.Storage.Repo.Migrations.FixRelayVisibility do
|
||||
use Ecto.Migration
|
||||
alias Mobilizon.Actors.Actor
|
||||
alias Mobilizon.Storage.Repo
|
||||
import Ecto.Query
|
||||
|
||||
def up do
|
||||
Actor
|
||||
|> where(preferred_username: "relay")
|
||||
|> where(type: "Application")
|
||||
|> where([a], is_nil(a.domain))
|
||||
|> update(set: [visibility: "public"])
|
||||
|> Repo.update_all([])
|
||||
end
|
||||
|
||||
def down do
|
||||
IO.puts("Not changing Relay visibility back")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user