* Revert "Add indication that you have been blocked in web UI (#10420)"
This reverts commit bd02ec6daa.
* Revert "Add `blocked_by` relationship to the REST API (#10373)"
This reverts commit 9745de883b.
* Hide blocking accounts from search results
* Filter blocking accouts from account followers
* Filter blocking accouts from account's following accounts
* Filter blocking accounts from “reblogged by” and “favourited by” lists
* Remove blocking account from URL search
* Return 410 on trying to fetch user data from a user who blocked us
* Return 410 in /api/v1/account/statuses for suspended or blocking accounts
* Fix status filtering when performing URL search
* Restore some React improvements
Restore some cleanup from bd02ec6daa
* Refactor by adding `without_blocking` scope
@ -84,8 +76,6 @@ class AccountTimeline extends ImmutablePureComponent {
);
);
}
}
constemptyMessage=blockedBy?<FormattedMessageid='empty_column.account_timeline_blocked'defaultMessage='You are blocked'/>:<FormattedMessageid='empty_column.account_timeline'defaultMessage='No toots here!'/>;
return(
return(
<Column>
<Column>
<ColumnBackButton/>
<ColumnBackButton/>
@ -94,13 +84,13 @@ class AccountTimeline extends ImmutablePureComponent {
@ -62,7 +60,7 @@ class Followers extends ImmutablePureComponent {
);
);
}
}
constemptyMessage=blockedBy?<FormattedMessageid='empty_column.account_timeline_blocked'defaultMessage='You are blocked'/>:<FormattedMessageid='account.followers.empty'defaultMessage='No one follows this user yet.'/>;
constemptyMessage=<FormattedMessageid='account.followers.empty'defaultMessage='No one follows this user yet.'/>;
return(
return(
<Column>
<Column>
@ -77,7 +75,7 @@ class Followers extends ImmutablePureComponent {
@ -62,7 +60,7 @@ class Following extends ImmutablePureComponent {
);
);
}
}
constemptyMessage=blockedBy?<FormattedMessageid='empty_column.account_timeline_blocked'defaultMessage='You are blocked'/>:<FormattedMessageid='account.follows.empty'defaultMessage="This user doesn't follow anyone yet."/>;
constemptyMessage=<FormattedMessageid='account.follows.empty'defaultMessage="This user doesn't follow anyone yet."/>;
return(
return(
<Column>
<Column>
@ -77,7 +75,7 @@ class Following 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'))}
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'))}