projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
541a4cb
)
Fixes Christmas Special
author
lain
<lain@soykaf.club>
Sat, 24 Feb 2018 09:52:12 +0000
(10:52 +0100)
committer
lain
<lain@soykaf.club>
Sat, 24 Feb 2018 09:52:12 +0000
(10:52 +0100)
lib/mix/tasks/fix_ap_users.ex
patch
|
blob
|
history
diff --git
a/lib/mix/tasks/fix_ap_users.ex
b/lib/mix/tasks/fix_ap_users.ex
index a0038d5e826699315b109c5c78e145685bafe898..ae34757775cafb88b797c34996145fecedc17d5c 100644
(file)
--- a/
lib/mix/tasks/fix_ap_users.ex
+++ b/
lib/mix/tasks/fix_ap_users.ex
@@
-13,8
+13,12
@@
defmodule Mix.Tasks.FixApUsers do
users = Repo.all(q)
Enum.each(users, fn(user) ->
- IO.puts("Fetching #{user.nickname}")
- Pleroma.Web.ActivityPub.Transmogrifier.upgrade_user_from_ap_id(user.ap_id, false)
+ try do
+ IO.puts("Fetching #{user.nickname}")
+ Pleroma.Web.ActivityPub.Transmogrifier.upgrade_user_from_ap_id(user.ap_id, false)
+ rescue
+ e -> IO.inspect(e)
+ end
end)
end
end