Skip to content

Commit

Permalink
Add local emoji reacted scope when statuses index importing
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Sep 17, 2023
1 parent 43bc0b4 commit 41b254a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/lib/importer/statuses_index_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def scopes
local_statuses_scope,
local_mentions_scope,
local_favourites_scope,
local_emoji_reacted_scope,
local_votes_scope,
local_bookmarks_scope,
]
Expand All @@ -70,6 +71,10 @@ def local_favourites_scope
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
Expand Down

0 comments on commit 41b254a

Please sign in to comment.