projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Conversations: Add mix task to 'import' old DMs.
[akkoma]
/
lib
/
pleroma
/
conversation.ex
diff --git
a/lib/pleroma/conversation.ex
b/lib/pleroma/conversation.ex
index aa73edd75574876190b0a183bc0cbc5ed48b5f1b..10c2403e8eef424eb77480084c8a0be052604a38 100644
(file)
--- a/
lib/pleroma/conversation.ex
+++ b/
lib/pleroma/conversation.ex
@@
-81,9
+81,12
@@
defmodule Pleroma.Conversation do
Pleroma.Web.ActivityPub.ActivityPub.fetch_direct_messages_query()
|> Repo.stream()
Pleroma.Web.ActivityPub.ActivityPub.fetch_direct_messages_query()
|> Repo.stream()
- Repo.transaction(fn ->
- stream
- |> Enum.each(&create_or_bump_for/1)
- end)
+ Repo.transaction(
+ fn ->
+ stream
+ |> Enum.each(&create_or_bump_for/1)
+ end,
+ timeout: :infinity
+ )
end
end
end
end