Commit Graph

1669 Commits (1fed11cfa77c12135c68d5eff8c0d8760605b2b2)

Author SHA1 Message Date
Claire 89f89d738f
Revert "Allow unblocking email addresses from any matching account ()" ()
Matt Jankowski def6b686ff
Fix `Rails/WhereRange` cop ()
Jeong Arm a627219b25
Fix moderation action logs ()
Emelia Smith 5fd56512de
Improve Report Notes and Account Moderation Notes ()
Claire d8c4284723
Ensure custom favicon is converted to PNG and ICO ()
Claire 2fe1b8d169
Add API to get multiple accounts and statuses ()
Co-authored-by: noellabo <noel.yoshiba@gmail.com>
Fawaz Farid bc24c4792d
Allow admins to configure instance favicon and logo ()
Claire 30ef9fccf0
Fix hashtag matching pattern matching some link anchors ()
Claire e5062b7135
Fix post deletion not being deferred when those are part of an account warning ()
Râu Cao 9aa31be8d3
Fix local account search on LDAP login being case-sensitive ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 88882fbbee
Move Rails/HABTM cop out of todo ()
Matt Jankowski 1e7d5d2957
Update `devise-two-factor` to version 5.0.0 ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 924af400da
Remove unused memoization in `CustomFilter#expires_in` method ()
Matt Jankowski ac7f4d57bb
Use composable query in `Status.without_replies` scope ()
Claire 95e9de5777
Prevent accidental serialization of `Account` and `User` records ()
Matt Jankowski bbf1b603e0
Remove unused `Account.popular` scope ()
Matt Jankowski 2123281f7c
Move `Account` limits to constants ()
Matt Jankowski f0c9cbaf3b
Use `EXPIRATION_DURATIONS` constant in `CustomFilter` class ()
Claire e845594878
Fix moderator account being exposed in account moderation notification ()
Claire 4ef0b48b95
Add in-app notifications for moderation actions/warnings ()
Matt Jankowski f4a53f3fb4
Extract constants for column size length validation limits ()
Matt Jankowski 11e0049b08
Use enum-generated scopes/queries for `BulkImport` ()
Matt Jankowski 650c548c31
Add `not_featured_by` scope to Tag ()
Claire fc89ecc6ca
Change `/api/v1/announcements` to return regular `Status` entities ()
Matt Jankowski 6fed108703
Use Rails `upsert` to generate update_count! query in Counters concern ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski caad1e2628
Add scope `Status.distributable_visibility` ()
Matt Jankowski 6b33d3f81b
Add `CustomFilter.unexpired` scope ()
Matt Jankowski 3159c0a547
Add scope `Status.list_eligible_visibility` ()
Matt Jankowski 13bbde2246
Use existing `DEFAULT_FIELDS_SIZE` constant to limit `Account#fields` ()
Matt Jankowski 285f63c02e
Use composable query in `User.active` scope ()
Claire babbf6017d
Remove caching in `cache_collection` ()
Matt Jankowski c0fe8a9f13
Extract shared callback behaviour to `CustomFilterCache` concern ()
Claire 38b9d31f63
Improve email address validation ()
Matt Jankowski f56309f5f0
Add `by_latest_used` scope, move admin area recent IPs to partial ()
Matt Jankowski b016f03637
Pull out constant from `AccountWarning.recent` scope ()
Matt Jankowski 1d0a43f6a3
Use composable query in `Status.not_domain_blocked_by_account` scope ()
Matt Jankowski 32938dadd7
Add `not_allowed` scope for `PreviewCardTrend` ()
Matt Jankowski cf76380c91
Add `AccountStat.by_recent_status`, use in `Account` ()
Emelia Smith eb926b7e60
Ensure case-insensitive fields are converted to lowercase in user imports ()
Emelia Smith a3e8b78250
Ensure case-insensitive fields are converted to lowercase in Admin Imports ()
Claire 37ca59815c
Remove setting for unfollow confirmation modal, and make it unconditional ()
Claire 58376eedda
Remove obsolete `admin` and `moderator` columns from `users` table ()
Claire d71d26a3c9
Reattribute notification-related records if possible when merging accounts ()
Claire dfa43707eb
Change `AccountRelationshipSeveranceEvent` model to store lost followers and following counts separately ()
Matt Jankowski 8c1d29df7e
Use `has_many through` instead of `delegate` for ARSE<>SR ()
Matt Jankowski 77897cd24c
Use existing `SeveredRelationship.about_local_account` scope in more places ()
Matt Jankowski cdd168f5d3
Update `enum` away from deprecated ()
Claire f4d753aedf
Fix error in severed relationship event serializer ()
Claire 98a2bb8be2
Fix issue with severed relationships notifications ()
Claire 954b470fbc
Fix error when attempting to delete posts that triggered a notification request ()
Claire d4449cc682
Fix account_relationship_severance_events unique indexes ()
Claire 44bf7b8128
Add notifications of severed relationships ()
Claire 8a1423a474
Allow unblocking email addresses from any matching account ()
Matt Jankowski 62e266fbd6
Add `BrowserDetection` model concern ()
Claire d5063072c3
Revert friends-of-friends follow recommendation query to using a CTE ()
Matt Jankowski 838b0bdf2d
Remove unused `Account::Interactions#endorsed?` method ()
Matt Jankowski 6c3e718b86
Remove setting of `sensitive` value (default false, not null) in Status model ()
Matt Jankowski 14aa7f1e15
Use `Account.activitypub` generated scope ()
Matt Jankowski 0bc17a3d48
Use enum-generated `public_visibility` scope on Status ()
Matt Jankowski 19cbadfbd6
Use enum-generated scope for `IpBlock` in CLI ()
Matt Jankowski c09b8a7164
Add `Account.without_internal` scope ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Claire b43eaa4517
Refactor notification filtering behavior definition ()
Matt Jankowski 01b624c4a0
Use `normalizes` on `CustomFilter#context` value ()
Matt Jankowski d4ed7e466c
Extract `by_domain_length` scope in `DomainNormalizable` concern ()
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 5b3a8737d6
Add hints for rules ()
Eugen Rochko 50b17f7e10
Add notification policies and notification requests ()
Claire ee8d0b9447
Fix follow suggestions potentially including silenced or blocked accounts ()
HTeuMeuLeu 934cab7508
New welcome email ()
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Matt Jankowski 3389c41b58
Move `nobody` position in `UserRole` magic number to constant ()
Matt Jankowski 8429d07454
Add `RankedTrend` concern for trends classes ()
Matt Jankowski 0ef44ee720
Move `AccountSuggestions::Source` subclasses default limit value to constant ()
Matt Jankowski 785e2f9399
Add scope `providing_styles` to `UserRole` ()
Matt Jankowski 245064bb98
Move "everyone" role and "instance actor" account magic number IDs to constants ()
Wolfgang Fournès cfadb87077
Update enum syntax to use the new Rails 7.0 style ()
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>
Emelia Smith e8b66a0525
Ignore legacy moderator and admin columns on User model ()
Claire 7ee93b7431
Change `source` attribute of `Suggestion` entity in `/api/v2/suggestions` back to a string ()
Claire 66dda7c762
Fix already-invalid reports failing to resolve ()
Matt Jankowski 86500e3312
Extract scenic view model common methods to concern ()
Eugen Rochko fa0ba67753
Change materialized views to be refreshed concurrently to avoid locks ()
Eugen Rochko c4af668e5c
Fix follow recommendations for less used languages ()
Matt Jankowski 42ab855b23
Add specs for `Instance` model scopes and add `with_domain_follows` scope ()
Matt Jankowski 6b6586f5d0
Add `CustomFilterKeyword#to_regex` method ()
Matt Jankowski 38f7f8b909
Tidy up association declaration in `Instance` model ()
Matt Jankowski 7a1f087659
Add `created_before` and `updated_before` scopes to `MediaAttachment` ()
Matt Jankowski 9d413cbaf8
Fix `Rails/WhereExists` cop in app/models ()
Matt Jankowski 599bc69503
Simplify `AccountSummary.filtered` query generation ()
Eugen Rochko 5b1eb09d54
Add annual reports for accounts ()
Matt Jankowski c0e8e457ab
Eager loading fixes for `api/` controllers ()
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 5fc4ae7c5f
Move privacy policy into markdown file ()
Matt Jankowski 1480573c83
Add `Account.auditable` scope, fix N+1 in admin/action_logs#index ()
Matt Jankowski f866413e72
Extract shared tagged statuses method in `FeaturedTag` ()
Matt Jankowski d0b3bc23d7
Remove unused `matches_domain` scopes on Account, DomainAllow, DomainBlock ()
Matt Jankowski 0b853678a4
Add coverage for `api/v1/peers/search` endpoint and extract controller query to Instance scope ()