Conversations: Add mix task to 'import' old DMs.
This commit is contained in:
parent
a4598b5e8b
commit
6d19bb4eae
2 changed files with 30 additions and 4 deletions
|
|
@ -81,9 +81,12 @@ defmodule Pleroma.Conversation do
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue