-
- Downloads
Change silences to always require approval on follow (#11975)
* Change silenced accounts to require approval on follow * Also require approval for follows by people explicitly muted by target accounts * Do not auto-accept silenced or muted accounts when switching from locked to unlocked * Add `follow_requests_count` to verify_credentials * Show “Follow requests” menu item if needed even if account is locked * Add tests * Correctly reflect that follow requests weren't auto-accepted when local account is silenced * Accept follow requests from user-muted accounts to avoid leaking mutes
Showing
- app/controllers/api/v1/accounts_controller.rb 1 addition, 1 deletionapp/controllers/api/v1/accounts_controller.rb
- app/javascript/mastodon/features/getting_started/index.js 3 additions, 5 deletionsapp/javascript/mastodon/features/getting_started/index.js
- app/lib/activitypub/activity/follow.rb 1 addition, 1 deletionapp/lib/activitypub/activity/follow.rb
- app/serializers/rest/credential_account_serializer.rb 1 addition, 0 deletionsapp/serializers/rest/credential_account_serializer.rb
- app/services/follow_service.rb 1 addition, 1 deletionapp/services/follow_service.rb
- app/services/update_account_service.rb 3 additions, 1 deletionapp/services/update_account_service.rb
- spec/lib/activitypub/activity/follow_spec.rb 30 additions, 0 deletionsspec/lib/activitypub/activity/follow_spec.rb
- spec/services/follow_service_spec.rb 27 additions, 0 deletionsspec/services/follow_service_spec.rb
- spec/services/update_account_service_spec.rb 38 additions, 0 deletionsspec/services/update_account_service_spec.rb
Loading