The code powering m.abunchtell.com https://m.abunchtell.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
703 B

  1. # frozen_string_literal: true
  2. class AccountRelationshipsPresenter
  3. attr_reader :following, :followed_by, :blocking,
  4. :muting, :requested, :domain_blocking
  5. def initialize(account_ids, current_account_id)
  6. @following = Account.following_map(account_ids, current_account_id)
  7. @followed_by = Account.followed_by_map(account_ids, current_account_id)
  8. @blocking = Account.blocking_map(account_ids, current_account_id)
  9. @muting = Account.muting_map(account_ids, current_account_id)
  10. @requested = Account.requested_map(account_ids, current_account_id)
  11. @domain_blocking = Account.domain_blocking_map(account_ids, current_account_id)
  12. end
  13. end