Commit Graph

512 Commits (d05f62391d0f0e2da43de63d888121ad23c479b2)

Author SHA1 Message Date
Claire 44bf7b8128
Add notifications of severed relationships ()
Claire d5063072c3
Revert friends-of-friends follow recommendation query to using a CTE ()
Matt Jankowski 6262ceeb70
Fix `RSpec/DescribedClass` cop ()
Matt Jankowski c09b8a7164
Add `Account.without_internal` scope ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 01b624c4a0
Use `normalizes` on `CustomFilter#context` value ()
Matt Jankowski 216cea1e27
Fix incorrect frequency value in `FriendsOfFriendsSource` data ()
Eugen Rochko c10bbf5fe3
Add notification policies and notification requests in web UI ()
Jeong Arm 4a6ddbc9c0
Normalize idna domain before account unblock domain ()
Eugen Rochko 50b17f7e10
Add notification policies and notification requests ()
Claire ee8d0b9447
Fix follow suggestions potentially including silenced or blocked accounts ()
Daniel M Brasil a25014de8f
Improve `IpBlock` model test coverage ()
Matt Jankowski 3389c41b58
Move `nobody` position in `UserRole` magic number to constant ()
Matt Jankowski 1f648fdf1a
Remove erroneous service type on `TagFeed` model spec ()
Matt Jankowski 64f9939e39
Use `capture_emails` helper to improve email assertions in specs ()
Matt Jankowski 245064bb98
Move "everyone" role and "instance actor" account magic number IDs to constants ()
Matt Jankowski 117b507df5
Extract `subject` from `User#mark_email_as_confirmed!` spec ()
Matt Jankowski bba488c189
Reduce `RSpec/MultipleExpectations` in media_attachment spec ()
Claire b31af34c97
Merge pull request from GHSA-vm39-j3vx-pch3
* Prevent different identities from a same SSO provider from accessing a same account

* Lock auth provider changes behind `ALLOW_UNSAFE_AUTH_PROVIDER_REATTACH=true`

* Rename methods to avoid confusion between OAuth and OmniAuth
Emelia Smith 68eaa804c9
Merge pull request from GHSA-7w3c-p9j8-mq3x
* Ensure destruction of OAuth Applications notifies streaming

Due to doorkeeper using a dependent: delete_all relationship, the destroy of an OAuth Application bypassed the existing AccessTokenExtension callbacks for announcing destructing of access tokens.

* Ensure password resets revoke access to Streaming API

* Improve performance of deleting OAuth tokens

---------

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 95da28d201
Add common `ThreadingHelper` module for specs ()
Claire 66dda7c762
Fix already-invalid reports failing to resolve ()
Matt Jankowski 6d35a77c92
Combine repeated subjects in `models/user` spec ()
Matt Jankowski 42ab855b23
Add specs for `Instance` model scopes and add `with_domain_follows` scope ()
Matt Jankowski 2866106ec1
Reduce factory creation in `spec/models/account_statuses_cleanup_policy` ()
Matt Jankowski 6b6586f5d0
Add `CustomFilterKeyword#to_regex` method ()
Matt Jankowski b0207d7757
Add coverage for `Tag.recently_used` scope ()
Matt Jankowski 18004bf227
Add `Account.matches_uri_prefix` scope and use in activitypub/followers_synchronizations controller ()
Matt Jankowski 1480573c83
Add `Account.auditable` scope, fix N+1 in admin/action_logs#index ()
Matt Jankowski d0b3bc23d7
Remove unused `matches_domain` scopes on Account, DomainAllow, DomainBlock ()
Matt Jankowski 07e10e3747
Combine assertions about same setup in `Account#suspend!` spec ()
Matt Jankowski 1b0cb3b54d
Announcement reactions query spec improvement and refactor ()
Claire 98b5f85f10
Rename and refactor `User#confirm!` to `User#mark_email_as_confirmed!` ()
Matt Jankowski cd37048439
Move followable_by coverage to suggestions ()
Matt Jankowski 8b26614fa7
Combine results include check in spec/models/account ()
Matt Jankowski 0a7cff53c2
Add coverage for `Account.followable_by` scope ()
Matt Jankowski 543d7890fd
Use normalizes to prepare `User` values ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 00341c70ff
Use Sidekiq `fake!` instead of `inline!` in specs ()
Claire 10203bd57a
Clean up `Setting` model and remove dead code ()
Jean Boussier 1781849884
Inline what remains of the rails-settings-cached gem ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 5dc634796a
Misc coverage improvements re: sidekiq/inline ()
Matt Jankowski e677eb164c
Remove unused `Announcement#time_range?` ()
Matt Jankowski 3e43cd095c
Remove unused scope `Announcement.without_muted` ()
Matt Jankowski aa6d07dbd9
Use normalizes to prepare CustomEmoji `domain` value ()
Matt Jankowski 12bed81187
Add validation specs to `CustomFilter` model ()
Matt Jankowski bb8077e784
Fix `RSpec/LetSetup` cop in models/account_status_cleanup_policy ()
Matt Jankowski e6e217fedd
Clean up `tagged_with_*` Status specs, fix `RSpec/LetSetup` cop ()
Matt Jankowski c753b1ad35
Clean up of `RSpec/LetSetup` within `spec/models` ()
Claire 6fed0fcbaa
Remove unneeded settings cleanup from specs ()
Matt Jankowski af366f65ee
Add spec coverage for `models/form/custom_emoji_batch` class ()
Matt Jankowski 1820bad646
Fix `Performance/StringIdentifierArgument` cop ()