* Revert "Fix filtering of favourited_by, reblogged_by, followers and following (#10447)"
This reverts commit 120544067f.
* Revert "Hide blocking accounts from blocked users (#10442)"
This reverts commit 62bafa20a1.
* 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'))}