file extensions are really hard

This commit is contained in:
Your New SJW Waifu 2021-02-05 08:55:32 -06:00
parent ac2ea66589
commit 29bf78b7b5
2 changed files with 0 additions and 21 deletions

View File

@ -1,21 +0,0 @@
alias Pleroma.{User,Repo}
import Ecto.Query
import Ecto.Changeset
from(
u in User,
where: fragment("? ->> 'id' IS NULL", u.info),
update: [
set: [info: nil]
]
) |> Repo.update_all([])
User
|> where([user], fragment("? ->> 'id' IS NULL", user.info))
|> Repo.all()
|> Enum.each(fn user ->
change(user)
|> put_embed(:info, %User.Info{locked: true, hide_followers: true, hide_follows: true})
|> User.update_and_set_cache()
end)