diff options
author | David Yip <yipdw@member.fsf.org> | 2018-04-13 16:38:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-13 16:38:15 -0500 |
commit | b7804028c2708c82cbb15037abe569519975ba9d (patch) | |
tree | a5cf9f9678172c658a9de4be3e8c31f3dc5bfa8c /app/presenters/status_relationships_presenter.rb | |
parent | a817f084eafaf5527445c29ab1d68f42b1a2872f (diff) | |
parent | acb434b0c998353e9e39379ecab27f68df41a100 (diff) |
Merge pull request #419 from ThibG/glitch-soc/features/bookmarks
Bookmarks
Diffstat (limited to 'app/presenters/status_relationships_presenter.rb')
-rw-r--r-- | app/presenters/status_relationships_presenter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/presenters/status_relationships_presenter.rb b/app/presenters/status_relationships_presenter.rb index b04e10e2f..64e688d87 100644 --- a/app/presenters/status_relationships_presenter.rb +++ b/app/presenters/status_relationships_presenter.rb @@ -7,6 +7,7 @@ class StatusRelationshipsPresenter if current_account_id.nil? @reblogs_map = {} @favourites_map = {} + @bookmarks_map = {} @mutes_map = {} @pins_map = {} else @@ -17,6 +18,7 @@ class StatusRelationshipsPresenter @reblogs_map = Status.reblogs_map(status_ids, current_account_id).merge(options[:reblogs_map] || {}) @favourites_map = Status.favourites_map(status_ids, current_account_id).merge(options[:favourites_map] || {}) + @bookmarks_map = Status.bookmarks_map(status_ids, current_account_id).merge(options[:bookmarks_map] || {}) @mutes_map = Status.mutes_map(conversation_ids, current_account_id).merge(options[:mutes_map] || {}) @pins_map = Status.pins_map(pinnable_status_ids, current_account_id).merge(options[:pins_map] || {}) end |