Commit Graph

3570 Commits

Author SHA1 Message Date
Matt Jankowski a1d9c3fb99
Use `expect` params wrapper for more "auth" and "2FA" "controllers" (#33717) 2025-01-24 14:40:20 +00:00
Claire 7261951791
Fix LDSignature tests (#33705) 2025-01-23 17:56:33 +00:00
Matt Jankowski 51ecc7326f
Fix intermittent services/ap/process_status_update tags failure (#33695) 2025-01-23 13:35:19 +00:00
Claire 19fa4cfcf2 Merge commit '3178acc5cb8415a72b646dbe77be05255d3966f3' into glitch-soc/merge-upstream 2025-01-23 13:38:23 +01:00
Matt Jankowski 8eee7ae4c3
Fix issue with saving empty fields values on filter keyword updates (#33691) 2025-01-23 09:04:12 +00:00
Matt Jankowski 4a9c49ee43
Fix issue with saving empty fields values on profile update (#33689) 2025-01-22 18:50:15 +00:00
Matt Jankowski 607f65a0a5
Use `expect` for api/v1 and api/web push subs controllers (#33682) 2025-01-22 14:55:44 +00:00
Jonathan de Jong b18caff5b6
Change `first_of_value` to `first_of_hash`, and add more test cases (#33647) 2025-01-22 14:02:05 +00:00
Matt Jankowski e155aab39e
Use `expect` for nested params in `settings/*` controllers (#33673) 2025-01-22 08:49:52 +00:00
Matt Jankowski d2cc28813f
Use `expect` for nested params in more controllers (#33675) 2025-01-22 08:35:34 +00:00
Claire 05e5db91c7 Merge commit '3dcf5e12b1ffb8e57a7c1e1f3f1145c9bae477e8' into glitch-soc/merge-upstream
Conflicts:
- `app/javascript/styles/mastodon/components.scss`:
  Conflict because one of the removed lines was modified to accomodate for
  glitch-soc's slightly different build system.
  Removed the lines as upstream did.
2025-01-21 19:23:25 +01:00
Claire 3dcf5e12b1
Change notifications from moderators to not be filtered (#33654) 2025-01-21 11:39:53 +00:00
Eugen Rochko 11786f1114
Change design of edit media modal in web UI (#33516) 2025-01-21 11:34:22 +00:00
Claire ce7fb94306 Merge commit '4ebdfed8ea7d16d203da73051ef26bbcdeb63681' into glitch-soc/merge-upstream 2025-01-21 12:06:49 +01:00
Matt Jankowski 45149cd5e1
Use `expect` for nested params in `auth/setup#update` (#33657) 2025-01-21 08:16:40 +00:00
Claire 297eb7c956 Merge commit '4bd969e4bb54297981d385903bf8a4348b394f09' into glitch-soc/merge-upstream
Conflicts:
- `CONTRIBUTING.md`:
  Upstream modified it while we quote upstream's within an otherwise different file.
  Applied upstream's changes.
2025-01-18 12:42:17 +01:00
Matt Jankowski 5be938e661
Migrate visibility interaction checks on statuses to request spec (#33622) 2025-01-17 10:06:52 +00:00
Christian Schmidt a3baae0b99
API for updating attribution domains (#32730) 2025-01-17 08:18:55 +00:00
Matt Jankowski 3af6739f21
Add coverage for `AnnualReport.prepare` method (#33618) 2025-01-16 15:45:48 +00:00
Claire f6a0cd9d1a Merge commit 'da4e55eb17e459fbc6d1a19fac3303508324324c' into glitch-soc/merge-upstream 2025-01-16 11:16:53 +01:00
Claire da4e55eb17
Merge commit from fork 2025-01-16 11:10:08 +01:00
Matt Jankowski 998cf0dd53
Convert `auth/setup` spec controller->system/request (#33604) 2025-01-16 09:03:46 +00:00
Matt Jankowski 72abf05269
Add "needs refresh" scenario to `api/v1/polls` request spec (#33608) 2025-01-16 09:00:04 +00:00
Claire ad71a8d1f7 Merge commit 'c20824fa760061cf8fba258dbbd6b0a615df4749' into glitch-soc/merge-upstream 2025-01-15 19:32:04 +01:00
Matt Jankowski 9f03e5b53a
Expand coverage of `admin/*blocks` areas (#33594) 2025-01-15 07:47:34 +00:00
Claire ab152ebed4 Merge commit 'e1d7efadc04dd0826c6bcfe43325688566e13881' into glitch-soc/merge-upstream
Conflicts:
- `app/models/status.rb`:
  Upstream refactored `visibility` handling to a concern, while glitch-soc had
  custom code adjacent to some of the changed lines.
  Applied upstream's changes.
- `lib/mastodon/version.rb`:
  Upstream moved some definitions to `config/mastodon.yml`, while glitch-soc's
  default github repository had been modified.
  Applied upstream's changes and updated `config/mastodon.yml` accordingly.
2025-01-14 20:38:32 +01:00
Matt Jankowski 68c9f91ccb
Treat non-null but blank account domain as local (#33576) 2025-01-14 17:40:55 +00:00
Matt Jankowski 50013b10a5
Add `Status::Visibility` concern to hold visibility logic (#33578) 2025-01-14 14:32:57 +00:00
Matt Jankowski 7c56517c7c
Move mastodon version config to `config_for` yml (#33577) 2025-01-14 14:32:29 +00:00
Matt Jankowski a9a8b6b701
Expand coverage of admin/trends/* areas (#33581) 2025-01-14 10:27:21 +00:00
S1m 4a2813158d
Add support for standard webpush (#33528)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2025-01-14 09:14:00 +00:00
Jeong Arm 74da9e9281
Fix custom css cache miss (#33583) 2025-01-14 08:24:00 +00:00
Wolfgang 77a44e61a8
Add enum validation to `DomainBlock#severity` (#29158) 2025-01-13 16:05:24 +00:00
Matt Jankowski f9451c5614
Fix issue with trending order when user has chosen languages (#33557) 2025-01-13 14:27:30 +00:00
Daniel M Brasil 0db7558822
Fix HTTP 500 on `POST /api/v1/admin/ip_blocks` (#29308) 2025-01-13 13:50:58 +00:00
Matt Jankowski 3c4a83fc62
Remove unused `LanguagePresenter#native_name` (#33551) 2025-01-13 12:58:53 +00:00
Claire 68d818121d
Switch `webpush` dependency to latest version of Mastodon-maintained fork (#33572) 2025-01-13 12:46:32 +00:00
Claire d517fa5ab7
Change ActivityPub path generation to all happen in `ActivityPub::TagManager` (#33527) 2025-01-13 09:39:05 +00:00
Matt Jankowski 22c1b6f3ee
Fix `Invite#code` changing value on every save (#33550) 2025-01-10 20:34:18 +00:00
Claire 155dc4bc4b Merge commit '34cd7d6585992c03298c175ab5d22ad059b58cdb' into glitch-soc/merge-upstream
Conflicts:
- `CONTRIBUTING.md`:
  Upstream changed the file, while we had a different one.
  Updated the common parts.
- `README.md`:
  Upstream changed the file, while we had a different one.
  Updated the common parts.
- `app/helpers/application_helper.rb`:
  Upstream added helpers where glitch-soc had extra ones.
  Added upstream's new helpers.
- `app/models/form/admin_settings.rb`:
  Upstream added some custom handling of one setting, while
  glitch-soc had additional code.
  Ported upstream's code.
- `lib/mastodon/version.rb`:
  Upstream moved some things to `config/mastodon.yml`.
  Did the same.
- `spec/requests/api/v1/accounts/credentials_spec.rb`:
  I don't know honestly.
2025-01-10 20:41:36 +01:00
Matt Jankowski 2cfc2a777a
Add `build_object` method for defaults in `AP::Activity::Create` spec (#33537) 2025-01-10 11:59:19 +00:00
Matt Jankowski 4f6edc7596
Use `in_order_of` in `trends/*` classes (#33531) 2025-01-10 09:33:07 +00:00
Matt Jankowski a8b0152bc5
Convert `admin/terms_of_service/histories` spec controller->system (#33534) 2025-01-10 09:11:57 +00:00
Matt Jankowski 8d4ca95163
Convert `admin/follow_recommendations` spec controller->system (#33533) 2025-01-10 09:10:21 +00:00
Matt Jankowski 2499cd01db
Add `duplicate_record` helper to maintenance CLI spec (#33536) 2025-01-10 09:04:23 +00:00
Matt Jankowski f98972e4eb
Use `with_options` for Account `if: :local?` validation group (#33529) 2025-01-10 09:00:31 +00:00
Matt Jankowski 54e2030146
Add `AccountWarning#appeal_eligible?` method (#33526) 2025-01-09 15:08:39 +00:00
Matt Jankowski 9b8d1fb6d1
Add `Account#actor_type_application?` query method (#33525) 2025-01-09 14:32:48 +00:00
Claire c6c8e7e6ab
Fix last paginated notification group only including data on a single notification (#33271) 2025-01-09 13:47:12 +00:00
Claire 91c75a6361
Re-introduce `application_id` in `ScheduledStatusSerializer` (#33505) 2025-01-09 13:38:23 +00:00
Christian Schmidt 8e2c642d44
Do now swallow response body on persistent connection (#32729) 2025-01-09 08:35:35 +00:00
Matt Jankowski cbae00ad23
Remove `render_template` from accounts request spec (#33519) 2025-01-09 08:17:11 +00:00
Matt Jankowski 4148b68430
Remove `render_template` from remote interaction helper request spec (#33518) 2025-01-09 08:17:06 +00:00
Matt Jankowski f4b463ecb1
Use `response.parsed_body` for error view application controller spec (#33515) 2025-01-09 08:17:00 +00:00
Matt Jankowski ce1501c3a7
Add "Account::Search" shared example for use in `Account` spec (#33507) 2025-01-09 08:12:48 +00:00
Matt Jankowski f22a2aab40
Add `Account#remote?` query method (#33508) 2025-01-08 14:28:08 +00:00
Matt Jankowski 0c690511c2
Convert `auth/challenges` spec controller->request (#33495) 2025-01-08 08:54:08 +00:00
Matt Jankowski b6c2923cf7
Convert `settings/migration` spec controller->system (#33496) 2025-01-08 08:53:26 +00:00
Matt Jankowski c0264c8013
Extend custom CSS cache time with digest paths (#33207) 2025-01-08 08:48:45 +00:00
Matt Jankowski b3243ef41c
Refer to constant values from `api/v1/apps` request spec (#33488) 2025-01-07 16:28:54 +00:00
Matt Jankowski 7ad44e22ed
Remove role color highlighting from custom css (#33493) 2025-01-07 16:28:35 +00:00
Matt Jankowski efcd4ea5de
Reference value constants from specs (#33479) 2025-01-06 23:25:13 +00:00
Claire 126ce9a232 Merge commit '82d2ce293d98a2b9e024bc5396c3586904d46ae5' into glitch-soc/merge-upstream 2025-01-06 20:36:25 +01:00
Matt Jankowski 82d2ce293d
Convert `admin/warning_presets` spec controller->system (#33474) 2025-01-06 18:24:54 +00:00
Matt Jankowski ef39398b82
Add `urgent` scope and `by_version` method to `SoftwareUpdate` (#33470) 2025-01-06 18:23:57 +00:00
Claire dbbf450ef5
Fix `fediverse:creator` metadata not showing up in REST API (#33466) 2025-01-06 10:04:25 +00:00
Matt Jankowski 08dd11f8d4
Use `in_order_of` with `filter: false` in `AccountSummary.localized` (#33446) 2025-01-06 08:18:05 +00:00
zunda f16fbc069a
Use configured limit for number of profile fields (#33463) 2025-01-06 04:47:10 +00:00
Tim Rogers 3bdfa3eb4c
Added validator for extra profile field values with empty name (#33421) 2025-01-04 19:42:27 +00:00
Claire 7e1f8babbd Merge commit '7d6da219c0fccb8693282a99765135050173d7c4' into glitch-soc/merge-upstream 2025-01-03 20:26:28 +01:00
Matt Jankowski 535866218e
Update `rails` to version 8.0.1 (#32357) 2025-01-03 16:08:21 +00:00
Claire 68106f250c Merge commit '6ffa251d6ad239d1ad2b95e784c3a7a21cbf50e8' into glitch-soc/merge-upstream 2025-01-03 12:34:47 +01:00
Matt Jankowski 7cbdcd7b3f
Add role-specific user fabricators (#33437) 2025-01-03 08:28:14 +00:00
Claire cef665788a Merge commit '8e3fd1b8236448f01221b1d7745736e50de51e11' into glitch-soc/merge-upstream 2025-01-02 21:14:14 +01:00
Matt Jankowski 8e3fd1b823
Convert `disputes/appeals` spec controller->system (#33434) 2025-01-02 16:08:25 +00:00
Matt Jankowski 1fbd106af9
Convert `admin/report_notes` spec controller->system (#33433) 2025-01-02 15:54:21 +00:00
Matt Jankowski 00a8a5467c
Convert `admin/relays` spec controller->system (#33430) 2025-01-02 15:01:44 +00:00
Matt Jankowski 2e936785b7
Convert `admin/rules` spec controller->system (#33377) 2025-01-02 12:57:55 +00:00
Claire f9fef9864a
Fix intermittent failure on ap/activity/update spec timestamp check (#33425) 2025-01-02 09:17:49 +00:00
Matt Jankowski 441dcd7396
Fix intermittent failure on ap/activity/create spec timestamp check (#33406) 2025-01-02 08:38:22 +00:00
Claire 0aa69487a2 Merge commit '877090518682b6c77ba9bdfa0231afd56daec44d' into glitch-soc/merge-upstream
Conflicts:
- `app/models/concerns/user/has_settings.rb`:
  Not a real conflict, upstream added a setting textually close to a glitch-soc one.
  Added upstream's new setting.
- `app/views/settings/preferences/appearance/show.html.haml`:
  Not a real conflict, upstream added a setting textually close to a glitch-soc one.
  Added upstream's new setting.
- `config/routes.rb`:
  Upstream moved web app routes to `config/routes/web_app.rb`, while glitch-soc had
  an extra route.
  Moved the extra route to `config/routes/web_app.rb`.
- `spec/controllers/settings/preferences/appearance_controller_spec.rb`:
  This spec got converted to a system spec upstream.
  However, the theme setting works differently in glitch-soc, so the spec had been
  changed.
  Changed the corresponding system spec as well.
2024-12-25 18:01:37 +01:00
Matt Jankowski 8770905186
Convert `admin/ip_blocks` spec controller->system (#33376) 2024-12-20 15:36:19 +00:00
Matt Jankowski f35de1ed0d
Remove un-needed `Poll.attached` scope (#33368) 2024-12-20 15:15:11 +00:00
Matt Jankowski d2fbf42b0e
Avoid `validate: false` save in expired poll create activity spec (#33367) 2024-12-20 13:34:05 +00:00
Claire 344e2903b3
Fix featured tags for remote accounts not being kept up to date (#33372) 2024-12-20 11:50:31 +00:00
Matt Jankowski d31d988e24
Add coverage for `UserMailer` not delivering to memorialized users (#33366)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-12-20 10:27:40 +00:00
Matt Jankowski 28d309fd86
Add shared example for `Expireable` concern (#33369) 2024-12-20 08:21:34 +00:00
Matt Jankowski 87c892191a
Convert `admin/domain_allows` spec controller->system (#33365) 2024-12-20 08:04:22 +00:00
Matt Jankowski 1acc54cfc7
Convert `admin/webhooks` spec controller->system (#33364) 2024-12-20 07:52:16 +00:00
Matt Jankowski 03bf4cde55
Convert `statuses_cleanup` controller specs to system specs (#33363) 2024-12-19 13:34:54 +00:00
Matt Jankowski 0ac43700d8
Add coverage for `REST::AnnualReportEventSerializer` and two `ActivityPub::*` serializers (#33355)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-12-19 12:30:09 +00:00
Matt Jankowski 22caddaa24
Update user role position range limit (#33349) 2024-12-19 08:10:39 +00:00
Matt Jankowski aee64a465c
Remove unused `Poll.unattached` scope (#33350) 2024-12-19 08:10:06 +00:00
Matt Jankowski 545a6b9eed
Convert `admin/account_moderation_notes` spec controller->system (#33354) 2024-12-19 08:02:08 +00:00
Matt Jankowski 668ce14ff2
Convert `admin/custom_emojis` spec controller->system (#33327) 2024-12-18 08:34:15 +00:00
Matt Jankowski ca2a7d66b8
Fix missing value limits for `UserRole` position (#33172) 2024-12-18 08:29:27 +00:00
Matt Jankowski d65e246192
Convert `statuses#activity` action controller to request spec (#33336) 2024-12-17 16:37:30 +00:00
Matt Jankowski 0085e8c427
Wrap assertions in `change` within `AccountStatusesCleanupPolicy` spec (#33335) 2024-12-17 16:25:02 +00:00
Matt Jankowski ce5c33c65d
Add API datetime/format matcher for serialization specs, reduce factories (#33325) 2024-12-17 13:38:57 +00:00
Claire 1712543c68
Revert "Support animated PNGs in media attachments (#28516)" (#33334) 2024-12-17 10:52:59 +00:00