mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-05-19 18:18:07 +00:00
Fix relay migration when relay == nil
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
533928fd96
commit
694c1a0d0a
|
@ -9,7 +9,7 @@ defmodule Pleroma.Repo.Migrations.ChangeRelayActorType do
|
|||
alias Pleroma.User
|
||||
|
||||
def change do
|
||||
relay = User.get_by_nickname("relay")
|
||||
relay = Repo.get_by(User, nickname: "relay")
|
||||
|
||||
if relay != nil and User.invisible?(relay) do
|
||||
relay
|
||||
|
|
Loading…
Reference in a new issue