* Revert "Fix filtering of favourited_by, reblogged_by, followers and following (#10447)"
This reverts commit 0317f37c6f.
* Revert "Hide blocking accounts from blocked users (#10442)"
This reverts commit 4cd944d364.
* Improve blocked view of profiles
- Change "You are blocked" to "Profile unavailable"
- Hide following/followers in API when blocked
- Disable follow button and show "Profile unavailable" on public profile as well
@ -60,7 +62,7 @@ class Followers extends ImmutablePureComponent {
);
}
constemptyMessage=<FormattedMessageid='account.followers.empty'defaultMessage='No one follows this user yet.'/>;
constemptyMessage=blockedBy?<FormattedMessageid='empty_column.account_unavailable'defaultMessage='Profile unavailable'/>:<FormattedMessageid='account.followers.empty'defaultMessage='No one follows this user yet.'/>;
return(
<Column>
@ -75,7 +77,7 @@ class Followers extends ImmutablePureComponent {
scope:by_recent_status,->{order(Arel.sql('(case when account_stats.last_status_at is null then 1 else 0 end) asc, account_stats.last_status_at desc'))}