The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
916 B

  1. object @account
  2. attributes :id, :username, :acct, :display_name, :locked
  3. node(:note) { |account| Formatter.instance.simplified_format(account) }
  4. node(:url) { |account| TagManager.instance.url_for(account) }
  5. node(:avatar) { |account| full_asset_url(account.avatar.url(:original)) }
  6. node(:header) { |account| full_asset_url(account.header.url(:original)) }
  7. node(:followers_count) { |account| defined?(@followers_counts_map) ? (@followers_counts_map[account.id] || 0) : (account.try(:followers_count) || account.followers.count) }
  8. node(:following_count) { |account| defined?(@following_counts_map) ? (@following_counts_map[account.id] || 0) : (account.try(:following_count) || account.following.count) }
  9. node(:statuses_count) { |account| defined?(@statuses_counts_map) ? (@statuses_counts_map[account.id] || 0) : (account.try(:statuses_count) || account.statuses.count) }