Commit Graph

449 Commits (af2aec1a82a13dc755d0dae893861d35c01fb0c6)

Author SHA1 Message Date
Matt Jankowski 08342ad40c
Add basic coverage for `AfterUnallowDomainService` class ()
Matt Jankowski 8f61e32569
Add basic coverage for `AppealService` class ()
Matt Jankowski b73932461f
Add basic coverage for `CreateFeaturedTagService` class ()
Matt Jankowski 5f19e7e799
Add basic coverage for `ProcessHashtagsService` class ()
Matt Jankowski 64f9939e39
Use `capture_emails` helper to improve email assertions in specs ()
Claire 9fee5e8526
Merge pull request from GHSA-jhrq-qvrm-qr36
* Fix insufficient Content-Type checking of fetched ActivityStreams objects

* Allow JSON-LD documents with multiple profiles
Matt Jankowski 4b7f04e3ea
Reduce `RSpec/MultipleExpectations` in post_status_service spec ()
Matt Jankowski fc4f823464
Avoid local block var assignment in ap/process_status_update_service spec ()
Matt Jankowski 95da28d201
Add common `ThreadingHelper` module for specs ()
Matt Jankowski 0df86d77fd
Reduce `RSpec/ExampleLength` in PostStatusService spec example ()
Matt Jankowski 978fdc71ca
Reduce expectation count in example from `ProcessAccountService` spec ()
Claire 1726085db5
Merge pull request from GHSA-3fjr-858r-92rw
* Fix insufficient origin validation

* Bump version to 4.3.0-alpha.1
Matt Jankowski 44f6d285af
Combine repeated subject in ap fetch remote actor service spec ()
Matt Jankowski 239244e2ed
Combine repeated subject in ap fetch remote account service spec ()
Matt Jankowski 7c9c6c7f80
Fix remaining `Rails/WhereExists` cop violations, regenerate todo ()
Claire cf2a2ed71c
Fix processing of compacted single-item JSON-LD collections ()
Matt Jankowski 3d82040b26
Reduced repeated setup in `UnallowDomainService` spec ()
Matt Jankowski 6c5a2d51bc
Reduced repeated setup in `PurgeDomainService` spec ()
Claire e621c1c44c
Fix registrations not checking MX records for email domain blocks requiring approval ()
Matt Jankowski a2f02a0775
Disable `Rails/SkipsModelValidations` cop ()
MitarashiDango 2c05b8a60d
Fix Undo Announce activity is not sent, when not followed by the reblogged post author ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 00341c70ff
Use Sidekiq `fake!` instead of `inline!` in specs ()
Matt Jankowski 5dc634796a
Misc coverage improvements re: sidekiq/inline ()
Matt Jankowski 832b92ac3e
Add attachment check to spec/service/suspend_account_service spec ()
Claire dfdadb92e8
Add ability to require approval when users sign up using specific email domains ()
Matt Jankowski a4d49c236d
Fix `RSpec/LetSetup` cop in ap/fetch_featured_collection_service ()
Matt Jankowski 9251779d75
Fix `RSpec/LetSetup` cop in spec/services ()
Matt Jankowski efd16f3c2c
Clean up of `RSpec/LetSetup` within `spec/services/activitypub` ()
Claire 6fed0fcbaa
Remove unneeded settings cleanup from specs ()
Matt Jankowski db897eaa5a
Unwind `map` on single-item array in `spec/services/delete_account_service` spec ()
Claire 89a496b42f
Fix status edits not always being streamed to mentioned users ()
Matt Jankowski ed7b5c091b
Remove double subject call in `services/delete_account_service` spec ()
Matt Jankowski be6bb1a10d
Remove double subject call in `services/suspend_account_service` spec ()
Matt Jankowski 5517df61de
Remove double subject call in `services/activitypub/process_account_service` spec ()
Matt Jankowski faffd81976
Remove double subject call in `services/unsuspend_account_service` spec ()
Matt Jankowski bb0efe16e6
Remove `default_scope` from `MediaAttachment` class ()
Matt Jankowski 6b46bf9953
Handle scenario when webfinger response `subject` is missing host value ()
Matt Jankowski 973597c6f1
Consolidate configuration of `Sidekiq::Testing.fake!` setup ()
Matt Jankowski b2c5b20ef2
Fix `RSpec/AnyInstance` cop ()
Claire 07a4059901
Add support for invite codes in the registration API ()
Eugen Rochko 0d14fcebae
Change link previews to keep original URL from the status ()
Matt Jankowski 69d00e2721
Fix `RSpec/InstanceVariable` cop ()
Matt Jankowski 45770c9306
Fix `Performance/MapMethodChain` cop ()
Matt Jankowski 49e2772064
Fix `RSpec/MessageSpies` cop ()
Matt Jankowski b06284c572
Fix `RSpec/HookArgument` cop ()
Jeong Arm 8f998cd96a
Handle featured collections without items ()
Matt Jankowski bcd0171e5e
Fix `Lint/UselessAssignment` cop ()
Matt Jankowski f8afa0f614
Remove unused stub json ld context ()
Claire 27e84c0691
Fix duplicate reports being sent when reporting some remote posts ()
Claire 6273416292
Fix post edits not being forwarded as expected ()
Claire 16681e0f20
Add admin notifications for new Mastodon versions ()
Eugen Rochko 2304cc6456
Fix bad search type heuristic ()
Nick Schonning b970ed6098
Update rubocop and rubocop-rspec ()
Claire 30c64bf616
Fix list import concurrently creating lists of the same name ()
Emelia Smith e258b4cb64
Refactor: replace whitelist_mode mentions with limited_federation_mode ()
Matt Jankowski 6f1fa1364f
Fix `RSpec/EmptyExampleGroup` cop ()
Christian Schmidt f96e4b3047
Use original URL in preview if it redirects to 4xx page ()
Matt Jankowski 2d9808f648
Reformat large key values in service specs ()
Matt Jankowski 7d62e3b198
Reformat large text arg in `FetchLinkCardService` spec ()
Claire 1e3b19230a
Add stricter protocol fields validation for accounts ()
Matt Jankowski 1cceb62afd
Fix `Lint/Void` cop ()
Claire f18618d7f9
Fix some incorrect tests ()
Matt Jankowski 6c5a2233a8
Fix `RSpec/StubbedMock` cop ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 658742b3cd
Fix `Lint/AmbiguousBlockAssociation` cop ()
Matt Jankowski 74806deb2c
Fix `RSpec/SubjectStub` cop ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski c75df62ccc
Fix `RSpec/SubjectDeclaration` cop ()
jsgoldstein 99be47f8b9
Change searching with # to include account index ()
Claire c27b82a437
Add `forward_to_domains` parameter to `POST /api/v1/reports` ()
Eugen Rochko 93e8a15415
Add forwarding of reported replies to servers being replied to ()
Daniel M Brasil 383c00819c
Fix `/api/v2/search` not working with following query param ()
Claire a209d1e683
Fix ResolveURLService not resolving local URLs for remote content ()
jsgoldstein 4581a528f7
Change account search to match by text when opted-in ()
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Matt Jankowski 05f9e39b32
Fix `RSpec/VerifiedDoubles` cop ()
Matt Jankowski 0b39b9abee
Speed-up on `BackupService` spec ()
Matt Jankowski 4c5aa0e470
Update rubocop-rspec to version 2.22.0, fix `RSpec/IndexedLet` cop ()
Matt Jankowski 62c996b52d
Reduce `RSpec/MultipleExpectations` cop max to 8 ()
Matt Jankowski 6c0e3f490a
Fix RSpec/MissingExampleGroupArgument cop ()
Matt Jankowski c42591356d
Fix `RSpec/DescribedClass` cop ()
Claire 8884d1ece0
Add support for importing lists ()
Renaud Chaput 942d850b0a
Allow carets in URL search params ()
Christian Schmidt 69057467cb
Translate CW, poll options and media descriptions ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 0f2c16ac4b
Fix RSpec/NoExpectationExample cop ()
Matt Jankowski d2e5430d4a
Fix RSpec/ExpectChange cop ()
Matt Jankowski b896b16cb3
Fix RSpec/PredicateMatcher cop ()
Emelia Smith 19f9098551
Allow reports with long comments from remote instances, but truncate ()
Nick Schonning 99e2e9b81f
Fix minor typos in comments and spec names ()
Claire b805b7f021
Add tests for avatar/header in backup service ()
Matt Jankowski bf3ebeb42f
Fix RSpec/SharedContext cop ()
Matt Jankowski a610a02d4f
Fix RSpec/ScatteredSetup cop ()
Matt Jankowski 710745e16b
Fix RSpec/ContextWording cop ()
Matt Jankowski bdcd8a9e88
Misc spec cleanup ()
Claire b233da5996
Optimize archive export service and export zip files instead of gzipped tar files ()
Claire 32a030dd74
Rewrite import feature ()
Nick Schonning a3393d0d07
Autofix Rubocop RSpec/MatchArray ()
Matt Jankowski 10f0de4212
Refactor race condition reblog service spec ()
Claire f53d009778
Refactor `Status._insert_record` slightly and tighten the test around reblogs of discarded statuses ()
Eugen Rochko a9b5598c97
Change user settings to be stored in a more optimal way ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Christian Schmidt eb38e9df31
Requeue expiration notification ()
Matt Jankowski 9da52ac044
Update rspec-rails to version 6.0.1 ()
Nick Schonning 6bd7003799
Fix mispelled spec filenames ()