Commit Graph

1753 Commits (d58173e45bf0fdf5a6015d40eb88c313a3d99e5c)

Author SHA1 Message Date
Claire af2aec1a82
Change notification requests to only count mentions (#31322) 5 months ago
Emelia Smith c40e481169
Implement UI for Admin Search of Hashtags (#30880) 5 months ago
Adam Niedzielski 337a7fcf30
Fix ß bug in regexp for mentions and tags (#31122) 5 months ago
Matt Jankowski e881a59671
Add `User.unconfirmed` scope, reduce factories in `scheduler/user_cleanup` spec (#31063) 5 months ago
Claire 3a49687ca0
Fix performance issue by using LATERAL in group notification CTE (#31123) 5 months ago
Emelia Smith bb2e5a4b58
Add audit logs to Admin::InstancesController (#27386) 5 months ago
Claire 2774980589
Fix syntax error in grouped notifications CTE on some PostgreSQL versions (#31098) 5 months ago
Renaud Chaput f587ff643f
Grouped Notifications UI (#30440)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
5 months ago
Emelia Smith aa88aca0ad
Add optional OAuth application to reports (#30539) 5 months ago
David Roetzel 35a437a03f
Destroy `NotificationRequest`s that are dismissed (#31008) 6 months ago
Claire ad52b04a1c
Add setting to disable hover cards (#30931)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
6 months ago
David Roetzel 967505ee9b
Add size limit for all PreviewCard URLs (#30973) 6 months ago
Claire d41b43ed4f
Limit attachments to `MEDIA_ATTACHMENTS_LIMIT` when returning posts through the API (#30932) 6 months ago
Eugen Rochko 096057b845
Change `author_account` to be `authors` in REST API (#30846) 6 months ago
Claire 7a84b76bb1
Drop favicon.ico generation (#30375) 6 months ago
Claire 8827cd597e
Fix `/admin/accounts/:account_id/statuses/:id` for edited posts with media attachments (#30819) 6 months ago
Claire bb2d77b4a0
Change `/api/v2_alpha/notifications` to only return historical data in pages (#30781) 6 months ago
Claire f723370c69
Fix missing `account_warning` delegation in `NotificationGroup` (#30779) 6 months ago
Claire 8eb27c60e1
Add `most_recent_notification_id` to `NotificationGroup` (#30707) 7 months ago
Claire 37f53542fe
Fix limit handling in grouped notifications CTE (#30685) 7 months ago
Matt Jankowski d818ddd687
Extract `SIGN_COUNT_LIMIT` constant in `WebauthnCredential` class (#30636) 7 months ago
Matt Jankowski 665f6f09a0
Add expired/revoked scopes for doorkeeper models via extension modules (#29936) 7 months ago
Matt Jankowski 9bf2e2eda0
Extract `TEXT_LENGTH_LIMIT` constant in `Appeal` class (#30638) 7 months ago
Claire 9e9613b286
Fix `mentions.account_id` and `mentions.status_id` not having `NOT NULL` database constraints (#30591) 7 months ago
Claire 1408733386
Fix Mastodon relying on ImageMagick even with `MASTODON_USE_LIBVIPS` (#30590) 7 months ago
Eugen Rochko a2505e8611
Add timeline of public posts about a trending link to REST API (#30381) 7 months ago
Emelia Smith 4655be0da6
Fix add validation to webpush subscription keys (#30542) 7 months ago
Eugen Rochko 5f15a892fa
Add support for libvips in addition to ImageMagick (#30090)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
7 months ago
Emelia Smith eef2cc054f
Add url validation to Web::PushSubscription endpoints (#30540) 7 months ago
Claire 974335e414
Add experimental server-side notification grouping (#29889) 7 months ago
Eugen Rochko 128987eded
Add support for `fediverse:creator` OpenGraph tag (#30398) 7 months ago
Matt Jankowski 4a77e477ee
Consolidate account scopes for `LOWER` (index using) username/domain queries (#30451) 7 months ago
Matt Jankowski c61e356475
Add `Status::MEDIA_ATTACHMENTS_LIMIT` configuration constant (#30433) 7 months ago
Matt Jankowski 9b5055d34d
Fix `Style/SuperArguments` cop (#30406) 7 months ago
Claire 89f89d738f
Revert "Allow unblocking email addresses from any matching account (#29305)" (#30385) 7 months ago
Matt Jankowski def6b686ff
Fix `Rails/WhereRange` cop (#30343) 7 months ago
Jeong Arm a627219b25
Fix moderation action logs (#30342) 7 months ago
Emelia Smith 5fd56512de
Improve Report Notes and Account Moderation Notes (#30288) 8 months ago
Claire d8c4284723
Ensure custom favicon is converted to PNG and ICO (#30208) 8 months ago
Claire 2fe1b8d169
Add API to get multiple accounts and statuses (#27871)
Co-authored-by: noellabo <noel.yoshiba@gmail.com>
8 months ago
Fawaz Farid bc24c4792d
Allow admins to configure instance favicon and logo (#30040) 8 months ago
Claire 30ef9fccf0
Fix hashtag matching pattern matching some link anchors (#30190) 8 months ago
Claire e5062b7135
Fix post deletion not being deferred when those are part of an account warning (#30163) 8 months ago
Râu Cao 9aa31be8d3
Fix local account search on LDAP login being case-sensitive (#30113)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
8 months ago
Matt Jankowski 88882fbbee
Move Rails/HABTM cop out of todo (#30118) 8 months ago
Matt Jankowski 1e7d5d2957
Update `devise-two-factor` to version 5.0.0 (#28325)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
8 months ago
Matt Jankowski 924af400da
Remove unused memoization in `CustomFilter#expires_in` method (#30117) 8 months ago
Matt Jankowski ac7f4d57bb
Use composable query in `Status.without_replies` scope (#30086) 8 months ago
Claire 95e9de5777
Prevent accidental serialization of `Account` and `User` records (#30079) 8 months ago
Matt Jankowski bbf1b603e0
Remove unused `Account.popular` scope (#30068) 8 months ago
Matt Jankowski 2123281f7c
Move `Account` limits to constants (#30087) 8 months ago
Matt Jankowski f0c9cbaf3b
Use `EXPIRATION_DURATIONS` constant in `CustomFilter` class (#30088) 8 months ago
Claire e845594878
Fix moderator account being exposed in account moderation notification (#30082) 8 months ago
Claire 4ef0b48b95
Add in-app notifications for moderation actions/warnings (#30065) 8 months ago
Matt Jankowski f4a53f3fb4
Extract constants for column size length validation limits (#30045) 8 months ago
Matt Jankowski 11e0049b08
Use enum-generated scopes/queries for `BulkImport` (#29975) 8 months ago
Matt Jankowski 650c548c31
Add `not_featured_by` scope to Tag (#28815) 8 months ago
Claire fc89ecc6ca
Change `/api/v1/announcements` to return regular `Status` entities (#26736) 8 months ago
Matt Jankowski 6fed108703
Use Rails `upsert` to generate update_count! query in Counters concern (#28738)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
8 months ago
Matt Jankowski caad1e2628
Add scope `Status.distributable_visibility` (#29950) 9 months ago
Matt Jankowski 6b33d3f81b
Add `CustomFilter.unexpired` scope (#29896) 9 months ago
Matt Jankowski 3159c0a547
Add scope `Status.list_eligible_visibility` (#29951) 9 months ago
Matt Jankowski 13bbde2246
Use existing `DEFAULT_FIELDS_SIZE` constant to limit `Account#fields` (#29911) 9 months ago
Matt Jankowski 285f63c02e
Use composable query in `User.active` scope (#29775) 9 months ago
Claire babbf6017d
Remove caching in `cache_collection` (#29862) 9 months ago
Matt Jankowski c0fe8a9f13
Extract shared callback behaviour to `CustomFilterCache` concern (#29695) 9 months ago
Claire 38b9d31f63
Improve email address validation (#29838) 9 months ago
Matt Jankowski f56309f5f0
Add `by_latest_used` scope, move admin area recent IPs to partial (#29497) 9 months ago
Matt Jankowski b016f03637
Pull out constant from `AccountWarning.recent` scope (#29767) 9 months ago
Matt Jankowski 1d0a43f6a3
Use composable query in `Status.not_domain_blocked_by_account` scope (#29766) 9 months ago
Matt Jankowski 32938dadd7
Add `not_allowed` scope for `PreviewCardTrend` (#29599) 9 months ago
Matt Jankowski cf76380c91
Add `AccountStat.by_recent_status`, use in `Account` (#29704) 9 months ago
Emelia Smith eb926b7e60
Ensure case-insensitive fields are converted to lowercase in user imports (#29740) 9 months ago
Emelia Smith a3e8b78250
Ensure case-insensitive fields are converted to lowercase in Admin Imports (#29739) 9 months ago
Claire 37ca59815c
Remove setting for unfollow confirmation modal, and make it unconditional (#29373) 9 months ago
Claire 58376eedda
Remove obsolete `admin` and `moderator` columns from `users` table (#29718) 9 months ago
Claire d71d26a3c9
Reattribute notification-related records if possible when merging accounts (#29694) 9 months ago
Claire dfa43707eb
Change `AccountRelationshipSeveranceEvent` model to store lost followers and following counts separately (#29714) 9 months ago
Matt Jankowski 8c1d29df7e
Use `has_many through` instead of `delegate` for ARSE<>SR (#29672) 9 months ago
Matt Jankowski 77897cd24c
Use existing `SeveredRelationship.about_local_account` scope in more places (#29673) 9 months ago
Matt Jankowski cdd168f5d3
Update `enum` away from deprecated (#29678) 9 months ago
Claire f4d753aedf
Fix error in severed relationship event serializer (#29670) 9 months ago
Claire 98a2bb8be2
Fix issue with severed relationships notifications (#29668) 9 months ago
Claire 954b470fbc
Fix error when attempting to delete posts that triggered a notification request (#29666) 9 months ago
Claire d4449cc682
Fix account_relationship_severance_events unique indexes (#29665) 9 months ago
Claire 44bf7b8128
Add notifications of severed relationships (#27511) 9 months ago
Claire 8a1423a474
Allow unblocking email addresses from any matching account (#29305) 9 months ago
Matt Jankowski 62e266fbd6
Add `BrowserDetection` model concern (#29513) 9 months ago
Claire d5063072c3
Revert friends-of-friends follow recommendation query to using a CTE (#29619) 9 months ago
Matt Jankowski 838b0bdf2d
Remove unused `Account::Interactions#endorsed?` method (#29463) 10 months ago
Matt Jankowski 6c3e718b86
Remove setting of `sensitive` value (default false, not null) in Status model (#29589) 10 months ago
Matt Jankowski 14aa7f1e15
Use `Account.activitypub` generated scope (#28157) 10 months ago
Matt Jankowski 0bc17a3d48
Use enum-generated `public_visibility` scope on Status (#28156) 10 months ago
Matt Jankowski 19cbadfbd6
Use enum-generated scope for `IpBlock` in CLI (#28144) 10 months ago
Matt Jankowski c09b8a7164
Add `Account.without_internal` scope (#29559)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
10 months ago
Claire b43eaa4517
Refactor notification filtering behavior definition (#29567) 10 months ago
Matt Jankowski 01b624c4a0
Use `normalizes` on `CustomFilter#context` value (#27602) 10 months ago
Matt Jankowski d4ed7e466c
Extract `by_domain_length` scope in `DomainNormalizable` concern (#29517) 10 months ago
Matt Jankowski 216cea1e27
Fix incorrect frequency value in `FriendsOfFriendsSource` data (#29550) 10 months ago
Eugen Rochko c10bbf5fe3
Add notification policies and notification requests in web UI (#29433) 10 months ago
Jeong Arm 4a6ddbc9c0
Normalize idna domain before account unblock domain (#29530) 10 months ago
Eugen Rochko 5b3a8737d6
Add hints for rules (#29539) 10 months ago
Eugen Rochko 50b17f7e10
Add notification policies and notification requests (#29366) 10 months ago
Claire ee8d0b9447
Fix follow suggestions potentially including silenced or blocked accounts (#29306) 10 months ago
HTeuMeuLeu 934cab7508
New welcome email (#28883)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
10 months ago
Matt Jankowski 3389c41b58
Move `nobody` position in `UserRole` magic number to constant (#29465) 10 months ago
Matt Jankowski 8429d07454
Add `RankedTrend` concern for trends classes (#29388) 10 months ago
Matt Jankowski 0ef44ee720
Move `AccountSuggestions::Source` subclasses default limit value to constant (#29282) 10 months ago
Matt Jankowski 785e2f9399
Add scope `providing_styles` to `UserRole` (#29286) 10 months ago
Matt Jankowski 245064bb98
Move "everyone" role and "instance actor" account magic number IDs to constants (#29260) 10 months ago
Wolfgang Fournès cfadb87077
Update enum syntax to use the new Rails 7.0 style (#29217) 11 months ago
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
11 months ago
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>
11 months ago
Emelia Smith e8b66a0525
Ignore legacy moderator and admin columns on User model (#29188) 11 months ago
Claire 7ee93b7431
Change `source` attribute of `Suggestion` entity in `/api/v2/suggestions` back to a string (#29108) 11 months ago
Claire 66dda7c762
Fix already-invalid reports failing to resolve (#29027) 11 months ago
Matt Jankowski 86500e3312
Extract scenic view model common methods to concern (#28111) 11 months ago
Eugen Rochko fa0ba67753
Change materialized views to be refreshed concurrently to avoid locks (#29015) 11 months ago
Eugen Rochko c4af668e5c
Fix follow recommendations for less used languages (#29017) 11 months ago
Matt Jankowski 42ab855b23
Add specs for `Instance` model scopes and add `with_domain_follows` scope (#28767) 11 months ago
Matt Jankowski 6b6586f5d0
Add `CustomFilterKeyword#to_regex` method (#28893) 11 months ago
Matt Jankowski 38f7f8b909
Tidy up association declaration in `Instance` model (#28880) 11 months ago
Matt Jankowski 7a1f087659
Add `created_before` and `updated_before` scopes to `MediaAttachment` (#28869) 11 months ago
Matt Jankowski 9d413cbaf8
Fix `Rails/WhereExists` cop in app/models (#28863) 11 months ago
Matt Jankowski 599bc69503
Simplify `AccountSummary.filtered` query generation (#28868) 11 months ago
Eugen Rochko 5b1eb09d54
Add annual reports for accounts (#28693) 11 months ago
Matt Jankowski c0e8e457ab
Eager loading fixes for `api/` controllers (#28848) 11 months ago
Matt Jankowski b0207d7757
Add coverage for `Tag.recently_used` scope (#28850) 11 months ago
Matt Jankowski 18004bf227
Add `Account.matches_uri_prefix` scope and use in activitypub/followers_synchronizations controller (#28820) 11 months ago
Matt Jankowski 5fc4ae7c5f
Move privacy policy into markdown file (#28699) 11 months ago
Matt Jankowski 1480573c83
Add `Account.auditable` scope, fix N+1 in admin/action_logs#index (#28812) 11 months ago
Matt Jankowski f866413e72
Extract shared tagged statuses method in `FeaturedTag` (#28805) 11 months ago
Matt Jankowski d0b3bc23d7
Remove unused `matches_domain` scopes on Account, DomainAllow, DomainBlock (#28803) 11 months ago
Matt Jankowski 0b853678a4
Add coverage for `api/v1/peers/search` endpoint and extract controller query to Instance scope (#28796) 11 months ago
Matt Jankowski 9fb9ef418a
Fix `Rails/WhereExists` cop in User model (#28792) 11 months ago
Matt Jankowski aaa6f2e930
Group common `class_name` options in associations (#28779) 11 months ago
Matt Jankowski da31792ac7
Fix `Rails/WhereExists` cop in FeaturedTag model (#28791) 11 months ago
Matt Jankowski 89c9a4502d
Fix `Rails/WhereExists` cop in account/interactions concern (#28789) 11 months ago
Matt Jankowski 1b0cb3b54d
Announcement reactions query spec improvement and refactor (#28768) 12 months ago
Claire 98b5f85f10
Rename and refactor `User#confirm!` to `User#mark_email_as_confirmed!` (#28735) 12 months ago
Claire e621c1c44c
Fix registrations not checking MX records for email domain blocks requiring approval (#28608) 12 months ago
Matt Jankowski a2f02a0775
Disable `Rails/SkipsModelValidations` cop (#28712) 12 months ago
Claire 8cb4825c8b
Fix sign-up restrictions based on email addresses not being enforced (#28732) 12 months ago
Matt Jankowski a90c134850
Move followable by logic to suggestion class (#28710) 12 months ago
Matt Jankowski 543d7890fd
Use normalizes to prepare `User` values (#28650)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
12 months ago
Claire 10203bd57a
Clean up `Setting` model and remove dead code (#28661) 12 months ago
Jean Boussier 1781849884
Inline what remains of the rails-settings-cached gem (#28618)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
12 months ago
Matt Jankowski cd4b4d4734
Replace unused `by_recent_sign_in` scope (#28616) 12 months ago
Matt Jankowski e677eb164c
Remove unused `Announcement#time_range?` (#28648) 12 months ago
Matt Jankowski 3e43cd095c
Remove unused scope `Announcement.without_muted` (#28645) 12 months ago