Skip to content

Commit

Permalink
port tootsuite#12716 to monsterfork: Fix error when fetching follower…
Browse files Browse the repository at this point in the history
…s/following from REST API when user has network hidden

Fix mastodon#12510
  • Loading branch information
Gargron authored and multiple creatures committed Feb 21, 2020
1 parent 591117f commit 9062384
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def load_accounts
end

def hide_results?
!user_signed_in? || (@account.user_hides_network? && current_account.id != @account.id) || (current_account && @account.blocking?(current_account))
(@account.user_hides_network? && current_account&.id != @account.id) || (current_account && @account.blocking?(current_account))
end

def default_accounts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def load_accounts
end

def hide_results?
!user_signed_in? || (@account.user_hides_network? && current_account.id != @account.id) || (current_account && @account.blocking?(current_account))
(@account.user_hides_network? && current_account&.id != @account.id) || (current_account && @account.blocking?(current_account))
end

def default_accounts
Expand Down

0 comments on commit 9062384

Please sign in to comment.