Add local emoji reacted scope when statuses index importing

This commit is contained in:
KMY 2023-09-17 10:46:57 +09:00
parent 43bc0b4cac
commit 41b254af55

View file

@ -55,6 +55,7 @@ class Importer::StatusesIndexImporter < Importer::BaseImporter
local_statuses_scope,
local_mentions_scope,
local_favourites_scope,
local_emoji_reacted_scope,
local_votes_scope,
local_bookmarks_scope,
]
@ -70,6 +71,10 @@ class Importer::StatusesIndexImporter < Importer::BaseImporter
Favourite.where(account: Account.local).select(:id, :status_id)
end
def local_emoji_reacted_scope
EmojiReaction.where(account: Account.local).select(:id, :status_id)
end
def local_bookmarks_scope
Bookmark.select(:id, :status_id)
end