Fix n+1 query for bookmarks on statuses (#12494)
This commit is contained in:
parent
d9793b2367
commit
07da35c17c
2 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class StatusRelationshipsPresenter
|
||||
attr_reader :reblogs_map, :favourites_map, :mutes_map, :pins_map
|
||||
attr_reader :reblogs_map, :favourites_map, :mutes_map, :pins_map,
|
||||
:bookmarks_map
|
||||
|
||||
def initialize(statuses, current_account_id = nil, **options)
|
||||
if current_account_id.nil?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue