1 defmodule Pleroma.Repo.Migrations.MigrateOldBookmarks do
10 |> Enum.each(fn user ->
11 Enum.each(user.old_bookmarks, fn id ->
12 activity = Activity.get_create_by_object_ap_id(id)
13 {:ok, _} = Bookmark.create(user.id, activity.id)
19 execute("TRUNCATE TABLE bookmarks")