Commit Graph

1754 Commits

Author SHA1 Message Date
Matt Jankowski d8eab3d81f
Reinforce coverage for `DomainBlock` model () 2024-10-14 12:51:01 +00:00
Claire b0dd38433b
Fix follow recommendation suppressions not applying immediately () 2024-10-14 08:18:25 +00:00
Claire d9fbb071da
Fix notification requests from suspended accounts still being listed () 2024-10-09 17:29:02 +00:00
Matt Jankowski 258dce1256
Add `OpenSSL::SSL::SSLError` to http connection errors wrapper () 2024-10-08 14:59:51 +00:00
Matt Jankowski e8ec6667bd
Extract wrapper constant for `HTTP::*` error classes () 2024-10-08 13:53:35 +00:00
Matt Jankowski bfabd6a2b8
Move account suspension-related methods to concern () 2024-10-07 12:02:04 +00:00
Matt Jankowski d95f6f4410
Extract `ExportSummary` class for account object counts () 2024-10-03 13:09:58 +00:00
Matt Jankowski 36f9c96812
Clean up labels on development application form () 2024-10-02 14:45:12 +00:00
Matt Jankowski 2151dfb8d6
Add `relevant_params` to ReportFilter (matches account filter) () 2024-10-02 13:24:40 +00:00
Matt Jankowski 1f65a95421
Remove unneeded `reorder(nil)` conditions () 2024-10-02 12:26:16 +00:00
Matt Jankowski 4aa26eba53
Extract `WebPushRequest` from push notification worker and subscription () 2024-10-02 11:11:52 +00:00
Matt Jankowski ec16ed37c3
Extract constants for header and avatar geometry () 2024-10-01 11:36:25 +00:00
Matt Jankowski e975b55c24
Remove `WebfingerHelper` module & move usage inline () 2024-10-01 09:54:42 +00:00
David Roetzel e6cda8388c
Move OTP secret length to configuration () 2024-10-01 09:38:42 +00:00
Claire 0c872beed4
Merge commit from fork
This should not change the set of words matched by `USERNAME_RE` but does
change the one matched by `MENTION_RE`. Indeed, the previous regexp allowed
a domain part to start with `.` or `-`, which the new regexp does not allow.
2024-09-30 12:25:54 +02:00
Matt Jankowski e02e88bff4
Use previously extracted model constants in form `maxlength` attributes () 2024-09-27 08:21:27 +00:00
Renaud Chaput d6f5ee75ab
Add notification grouping for follow notifications () 2024-09-25 13:36:19 +00:00
Matt Jankowski 04a939d640
Add `reviewed` and `unreviewed` scopes to `Reviewable` model concern () 2024-09-20 08:51:37 +00:00
Matt Jankowski 5405bdd344
Remove unused E2EE messaging code () 2024-09-18 09:27:43 +00:00
Matt Jankowski abd2f5654a
Add validation coverage for `CustomEmoji` shortcode value () 2024-09-16 07:53:03 +00:00
Claire 4b40d13cb3
Increase preview card image size limit from 2MB to 8MB when using libvips () 2024-09-14 00:16:02 +00:00
David Roetzel c1b2c4fd9a
Strip protocol from attribution domains () 2024-09-13 11:37:15 +00:00
Claire ba81e4e019
Fix inability to locally suspend remotely-suspended accounts in moderation interface () 2024-09-13 09:11:10 +00:00
Matt Jankowski a2c4f5f5c0
Add coverage for `ListAccount` follow/follow_request set up () 2024-09-13 08:49:03 +00:00
Matt Jankowski 49cbee3836
Remove unused argument from `AccountMigration.within_cooldown` () 2024-09-13 08:43:21 +00:00
Christian Schmidt 8cdc148167
Handle invalid visibility () 2024-09-12 13:29:55 +00:00
Matt Jankowski 17c57c46e7
Add coverage for title/limit validations in `List` model () 2024-09-12 13:25:23 +00:00
Matt Jankowski da07adfe6c
Add `CustomEmoji.enabled` scope () 2024-09-10 13:21:40 +00:00
Eugen Rochko e0c27a5047
Add ability to manage which websites can credit you in link previews () 2024-09-10 12:00:40 +00:00
Matt Jankowski 5b995143f1
Use `with_options` for shared Account validation option value () 2024-09-10 08:03:45 +00:00
Matt Jankowski d0ab94c4d2
Add `FeaturedTag` coverage, use `pick` in model () 2024-09-09 19:57:19 +00:00
Matt Jankowski e6969cf4e4
Add method for media-referencing status in `AccountStatusCleanupPolicy` () 2024-09-09 08:33:51 +00:00
Mike Dalessio 82161d8ae5
Change Account::Field parsing to use HTML5::DocumentFragment () 2024-09-08 18:56:18 +00:00
Emelia Smith c88ba523ee
Fix sort order of moderation notes on Reports and Accounts () 2024-09-06 14:58:36 +00:00
Emelia Smith fd7fc7bdc3
Disable actions on reports that have already been taken () 2024-09-06 12:50:30 +00:00
Matt Jankowski be77a1098b
Extract `Account::AUTOMATED_ACTOR_TYPES` for "bot" actor_type values () 2024-09-06 07:49:38 +00:00
Matt Jankowski 58df00f04d
Extract method for self-referencing records in `AccountStatusCleanupPolicy` () 2024-09-04 08:52:37 +00:00
Matt Jankowski 7c26e5e4a1
Add `Reviewable` model concern () 2024-09-03 15:37:45 +00:00
Matt Jankowski 2f0d0fc127
Add coverage for `CLI::Accounts#fix_duplications` task () 2024-09-03 15:36:59 +00:00
Matt Jankowski 48379e62e4
Remove unused `User#inactive_message` method () 2024-09-03 08:04:00 +00:00
Matt Jankowski 406b8211f5
Remove unused `Mention#active?` method () 2024-09-03 08:03:25 +00:00
David Roetzel 388d5473e1
Refactor (ruby) redis configuration () 2024-09-02 14:19:55 +00:00
Claire a23b3747ac
Fix N+1s in grouped notifications () 2024-09-02 09:56:00 +00:00
Claire ad0a28a8bf
Add `grouped_types` parameter to allow clients to restrict which notifications types get grouped () 2024-08-29 12:39:07 +00:00
Claire 711e1fce0a
Fix pagination parameters in `GET /api/v2_alpha/notificatins` () 2024-08-20 13:54:08 +00:00
Edward Moulsdale d4f135bc6d
Fix in memoriam accounts appearing in follow recommendations ()
Co-authored-by: Utkarsh Wankar <46633523+kernal053@users.noreply.github.com>
2024-08-19 15:55:42 +00:00
Emelia Smith 99051479c1
Fix Trending Tags pending review having an unstable sort order ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-08-19 13:25:40 +00:00
Jeong Arm 95c11d365d
Don't push to cache buster if attachment path is nil () 2024-08-14 08:57:42 +00:00
Matt Jankowski 02df1b4e4a
Finish email allow/deny list naming migration () 2024-08-13 07:37:32 +00:00
Claire cbdd8edf68
Revamp notification policy options () 2024-08-09 13:30:55 +00:00
Claire 994ef16b72
Bust CDN cache on media deletion () 2024-08-09 12:48:34 +00:00
Claire af2aec1a82
Change notification requests to only count mentions () 2024-08-07 11:12:36 +00:00
Emelia Smith c40e481169
Implement UI for Admin Search of Hashtags () 2024-07-29 15:49:44 +00:00
Adam Niedzielski 337a7fcf30
Fix ß bug in regexp for mentions and tags () 2024-07-25 14:24:19 +00:00
Matt Jankowski e881a59671
Add `User.unconfirmed` scope, reduce factories in `scheduler/user_cleanup` spec () 2024-07-25 14:18:24 +00:00
Claire 3a49687ca0
Fix performance issue by using LATERAL in group notification CTE () 2024-07-24 18:59:15 +00:00
Emelia Smith bb2e5a4b58
Add audit logs to Admin::InstancesController () 2024-07-23 08:12:30 +00:00
Claire 2774980589
Fix syntax error in grouped notifications CTE on some PostgreSQL versions () 2024-07-22 07:37:27 +00:00
Renaud Chaput f587ff643f
Grouped Notifications UI ()
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-07-18 14:36:09 +00:00
Emelia Smith aa88aca0ad
Add optional OAuth application to reports () 2024-07-16 13:23:08 +00:00
David Roetzel 35a437a03f
Destroy `NotificationRequest`s that are dismissed () 2024-07-12 12:09:52 +00:00
Claire ad52b04a1c
Add setting to disable hover cards ()
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
2024-07-11 19:42:58 +00:00
David Roetzel 967505ee9b
Add size limit for all PreviewCard URLs () 2024-07-09 13:11:34 +00:00
Claire d41b43ed4f
Limit attachments to `MEDIA_ATTACHMENTS_LIMIT` when returning posts through the API () 2024-07-08 07:41:50 +00:00
Eugen Rochko 096057b845
Change `author_account` to be `authors` in REST API () 2024-06-27 13:17:18 +00:00
Claire 7a84b76bb1
Drop favicon.ico generation () 2024-06-26 13:44:08 +00:00
Claire 8827cd597e
Fix `/admin/accounts/:account_id/statuses/:id` for edited posts with media attachments () 2024-06-24 13:11:10 +00:00
Claire bb2d77b4a0
Change `/api/v2_alpha/notifications` to only return historical data in pages () 2024-06-20 15:54:50 +00:00
Claire f723370c69
Fix missing `account_warning` delegation in `NotificationGroup` () 2024-06-20 13:44:49 +00:00
Claire 8eb27c60e1
Add `most_recent_notification_id` to `NotificationGroup` () 2024-06-14 10:33:06 +00:00
Claire 37f53542fe
Fix limit handling in grouped notifications CTE () 2024-06-13 12:42:40 +00:00
Matt Jankowski d818ddd687
Extract `SIGN_COUNT_LIMIT` constant in `WebauthnCredential` class () 2024-06-11 15:36:21 +00:00
Matt Jankowski 665f6f09a0
Add expired/revoked scopes for doorkeeper models via extension modules () 2024-06-11 08:50:51 +00:00
Matt Jankowski 9bf2e2eda0
Extract `TEXT_LENGTH_LIMIT` constant in `Appeal` class () 2024-06-10 15:23:17 +00:00
Claire 9e9613b286
Fix `mentions.account_id` and `mentions.status_id` not having `NOT NULL` database constraints () 2024-06-07 13:45:11 +00:00
Claire 1408733386
Fix Mastodon relying on ImageMagick even with `MASTODON_USE_LIBVIPS` () 2024-06-07 09:27:59 +00:00
Eugen Rochko a2505e8611
Add timeline of public posts about a trending link to REST API () 2024-06-06 08:43:04 +00:00
Emelia Smith 4655be0da6
Fix add validation to webpush subscription keys () 2024-06-05 19:16:47 +00:00
Eugen Rochko 5f15a892fa
Add support for libvips in addition to ImageMagick ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-06-05 19:15:39 +00:00
Emelia Smith eef2cc054f
Add url validation to Web::PushSubscription endpoints () 2024-06-05 08:06:06 +00:00
Claire 974335e414
Add experimental server-side notification grouping () 2024-06-03 08:35:59 +00:00
Eugen Rochko 128987eded
Add support for `fediverse:creator` OpenGraph tag () 2024-05-29 01:34:33 +02:00
Matt Jankowski 4a77e477ee
Consolidate account scopes for `LOWER` (index using) username/domain queries () 2024-05-28 14:11:31 +00:00
Matt Jankowski c61e356475
Add `Status::MEDIA_ATTACHMENTS_LIMIT` configuration constant () 2024-05-27 09:49:44 +00:00
Matt Jankowski 9b5055d34d
Fix `Style/SuperArguments` cop () 2024-05-24 08:36:21 +00:00
Claire 89f89d738f
Revert "Allow unblocking email addresses from any matching account ()" () 2024-05-21 08:56:08 +00:00
Matt Jankowski def6b686ff
Fix `Rails/WhereRange` cop () 2024-05-20 09:37:36 +00:00
Jeong Arm a627219b25
Fix moderation action logs () 2024-05-17 09:18:54 +00:00
Emelia Smith 5fd56512de
Improve Report Notes and Account Moderation Notes () 2024-05-15 13:38:36 +00:00
Claire d8c4284723
Ensure custom favicon is converted to PNG and ICO () 2024-05-07 18:15:17 +00:00
Claire 2fe1b8d169
Add API to get multiple accounts and statuses ()
Co-authored-by: noellabo <noel.yoshiba@gmail.com>
2024-05-06 15:19:15 +00:00
Fawaz Farid bc24c4792d
Allow admins to configure instance favicon and logo () 2024-05-06 15:06:52 +00:00
Claire 30ef9fccf0
Fix hashtag matching pattern matching some link anchors () 2024-05-06 12:47:19 +00:00
Claire e5062b7135
Fix post deletion not being deferred when those are part of an account warning () 2024-05-06 09:52:34 +00:00
Râu Cao 9aa31be8d3
Fix local account search on LDAP login being case-sensitive ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-05-03 09:22:48 +00:00
Matt Jankowski 88882fbbee
Move Rails/HABTM cop out of todo () 2024-05-02 09:40:05 +00:00
Matt Jankowski 1e7d5d2957
Update `devise-two-factor` to version 5.0.0 ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-05-02 09:31:41 +00:00
Matt Jankowski 924af400da
Remove unused memoization in `CustomFilter#expires_in` method () 2024-04-29 12:49:31 +00:00
Matt Jankowski ac7f4d57bb
Use composable query in `Status.without_replies` scope () 2024-04-29 09:55:37 +00:00
Claire 95e9de5777
Prevent accidental serialization of `Account` and `User` records () 2024-04-29 09:45:58 +00:00