Skip to content
Snippets Groups Projects
Commit eee8afb0 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Remove bios from blocked users list, filter out broken entries from API response

parent c5a08eb5
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ const Account = React.createClass({
getDefaultProps () {
return {
withNote: true
withNote: false
};
},
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment