Commit Graph

23 Commits (86f999c1f2db7186c6d43670f78d05ebd9ccc042)

Author SHA1 Message Date
Claire 05eda8d193
Remove severed relationship notifications for single account suspensions ()
Claire 44bf7b8128
Add notifications of severed relationships ()
Matt Jankowski 469028b6d3
Remove unneeded `type: :service` from spec/services files ()
Matt Jankowski 00341c70ff
Use Sidekiq `fake!` instead of `inline!` in specs ()
Matt Jankowski 832b92ac3e
Add attachment check to spec/service/suspend_account_service spec ()
Matt Jankowski 9251779d75
Fix `RSpec/LetSetup` cop in spec/services ()
Matt Jankowski be6bb1a10d
Remove double subject call in `services/suspend_account_service` spec ()
Nick Schonning b970ed6098
Update rubocop and rubocop-rspec ()
Claire 1e3b19230a
Add stricter protocol fields validation for accounts ()
Matt Jankowski d2e5430d4a
Fix RSpec/ExpectChange cop ()
Nick Schonning 84cc805cae
Enable Style/FrozenStringLiteralComment for specs ()
Nick Schonning 4552685f6b
Autofix Rubocop RSpec/LeadingSubject ()
Claire 18fb01ef7c
Fix possible race conditions when suspending/unsuspending accounts ()
* Fix possible race conditions when suspending/unsuspending accounts

* Fix tests

Tests were assuming SuspensionWorker and UnsuspensionWorker would do the
suspending/unsuspending themselves, but this has changed.
Claire 30658924a8
Fix test-related issues ()
* Remove obsolete RSS::Serializer test

Since , RSS::Serializer no longer has specific code for deleted statuses,
but it is never called on deleted statuses anyway.

* Rename erroneously-named test files

* Fix failing test

* Fix test deprecation warnings

* Update CircleCI Ruby orb

1.4.0 has a bug that does not match all the test files due to incorrect
globbing
Claire 6702148472
Add tests for SuspendAccountService and UnsuspendAccountService ()
* Add tests for SuspendAccountService

* Add tests for UnsuspendAccountService
Eugen Rochko ed099d8bdc
Change account suspensions to be reversible by default ()
ThibG e96e9cae62
Add test for removing endorsed accounts on account deletion/suspension ()
Eugen Rochko bd87e66679
Remove WebSub subscriptions ()
Eugen Rochko b851456139
Remove Atom feeds and old URLs in the form of `GET /:username/updates/:id` ()
ThibG c11dff5049 Reject existing Follows when suspending a remote account ()
* Reject existing Follows when suspending a remote account

Partial fix to 

* Add tests
Eugen Rochko 6226aa83d7
Increase reach of Delete->Actor activities ()
Fix 
Eugen Rochko cb5b5cb5f7
Slightly reduce RAM usage ()
* No need to re-require sidekiq plugins, they are required via Gemfile

* Add derailed_benchmarks tool, no need to require TTY gems in Gemfile

* Replace ruby-oembed with FetchOEmbedService

Reduce startup by 45382 allocated objects

* Remove preloaded JSON-LD in favour of caching HTTP responses

Reduce boot RAM by about 6 MiB

* Fix tests

* Fix test suite by stubbing out JSON-LD contexts
alpaca-tc 74c8ca699c Delete records in smaller transaction ()