Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85628012
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
724 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/fix_users.ex b/fix_users.ex
deleted file mode 100644
index 11071a1f4..000000000
--- a/fix_users.ex
+++ /dev/null
@@ -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)
diff --git a/fix_users.esx b/fix_users.exs
similarity index 100%
rename from fix_users.esx
rename to fix_users.exs
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Aug 8, 8:40 AM (17 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1723025
Default Alt Text
(724 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment