]> cat aescling's git repositories - mastodon.git/commit
Improve blocked view of profiles (#10491)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 7 Apr 2019 02:59:13 +0000 (04:59 +0200)
committerGitHub <noreply@github.com>
Sun, 7 Apr 2019 02:59:13 +0000 (04:59 +0200)
commit67b3b62b98b89f24097a2757e42bc94f1bce123c
tree4d2b100537676e349c8d9863e6ae600cf7ac7219
parent0e8819f0e8729cda54231ed7a76dd10eb2083bdf
Improve blocked view of profiles (#10491)

* Revert "Fix filtering of favourited_by, reblogged_by, followers and following (#10447)"

This reverts commit 120544067fcca4bf6e71ba1ffb276c451c17c656.

* Revert "Hide blocking accounts from blocked users (#10442)"

This reverts commit 62bafa20a112ccdddaedb25723fc819dbbcd8e9a.

* 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
26 files changed:
app/controllers/api/v1/accounts/follower_accounts_controller.rb
app/controllers/api/v1/accounts/following_accounts_controller.rb
app/controllers/api/v1/accounts/statuses_controller.rb
app/controllers/api/v1/accounts_controller.rb
app/controllers/api/v1/statuses/favourited_by_accounts_controller.rb
app/controllers/api/v1/statuses/reblogged_by_accounts_controller.rb
app/helpers/stream_entries_helper.rb
app/javascript/mastodon/features/account/components/header.js
app/javascript/mastodon/features/account_timeline/index.js
app/javascript/mastodon/features/followers/index.js
app/javascript/mastodon/features/following/index.js
app/javascript/styles/mastodon/components.scss
app/javascript/styles/mastodon/stream_entries.scss
app/models/account.rb
app/presenters/account_relationships_presenter.rb
app/serializers/rest/relationship_serializer.rb
app/services/account_search_service.rb
app/services/search_service.rb
app/views/accounts/show.html.haml
app/views/follower_accounts/index.html.haml
app/views/following_accounts/index.html.haml
config/locales/en.yml
spec/controllers/api/v1/accounts/follower_accounts_controller_spec.rb
spec/controllers/api/v1/accounts/following_accounts_controller_spec.rb
spec/services/account_search_service_spec.rb
spec/services/search_service_spec.rb