Skip to content

Commit

Permalink
Remove bios from blocked users list, filter out broken entries from A…
Browse files Browse the repository at this point in the history
…PI response
  • Loading branch information
Gargron committed Feb 5, 2017
1 parent c5a08eb commit eee8afb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/components/components/account.jsx
Expand Up @@ -51,7 +51,7 @@ const Account = React.createClass({

getDefaultProps () {
return {
withNote: true
withNote: false
};
},

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/v1/blocks_controller.rb
Expand Up @@ -9,7 +9,7 @@ class Api::V1::BlocksController < ApiController
def index
results = Block.where(account: current_account).paginate_by_max_id(limit_param(DEFAULT_ACCOUNTS_LIMIT), params[:max_id], params[:since_id])
accounts = Account.where(id: results.map(&:target_account_id)).map { |a| [a.id, a] }.to_h
@accounts = results.map { |f| accounts[f.target_account_id] }
@accounts = results.map { |f| accounts[f.target_account_id] }.compact

set_account_counters_maps(@accounts)

Expand Down

0 comments on commit eee8afb

Please sign in to comment.