Commit Graph

3570 Commits

Author SHA1 Message Date
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
Matt Jankowski 60bb51eef8
Convert `filters` spec controller->system (#33326) 2024-12-17 09:20:01 +00:00
Matt Jankowski a7673d361d
Fix `application_id` erroneous inclusion in `ScheduledStatusSerializer` (#33159) 2024-12-17 08:54:07 +00:00
Matt Jankowski efe4e72f93
Convert `settings/preferences/appearance` controller spec to system (#33323) 2024-12-16 17:08:19 +00:00
Matt Jankowski 9067a7f696
Convert `settings/preferences/notifications` controller spec to system (#33322) 2024-12-16 16:24:05 +00:00
Matt Jankowski bfef66276a
Convert `settings/preferences/other` controller spec to system (#33321) 2024-12-16 16:23:26 +00:00
Matt Jankowski c68eb82ffa
Use explicit config loading from `bin/rubocop` (#33256) 2024-12-16 13:50:58 +00:00
Matt Jankowski a596f3479b
Convert `settings/login_activities` controller spec to system spec (#33306) 2024-12-16 08:12:36 +00:00
Matt Jankowski 3d00b95359
Convert `settings/profiles` controller spec to system spec (#33305) 2024-12-16 08:11:48 +00:00
Nik Clayton 5cf37248cc
Ensure datetime/date are serialized to correct format (#33086) 2024-12-14 15:50:41 +00:00
Matt Jankowski 4130bda12e
Convert `settings/verifications` controller spec to system spec (#33285) 2024-12-13 10:39:07 +00:00
Matt Jankowski 1bd9306ced
Add coverage for `Tag` model validations on name/display_name (#33291) 2024-12-13 09:21:55 +00:00
Matt Jankowski 3c71ee9b90
Use `touch_all` for time column updates (#33295) 2024-12-13 08:41:42 +00:00
Matt Jankowski 4bf6af3b61
Remove unused `model_have_error_on_field` matcher (#33273) 2024-12-12 10:28:05 +00:00
Matt Jankowski b51e0bc3c7
Simplify model validation specs for `Report` (#33267) 2024-12-12 09:09:35 +00:00
Claire bcb3b627b9
Fix processing of mentions for post edits with an existing corresponding silent mention (#33227) 2024-12-11 12:59:29 +00:00
Matt Jankowski ad68686bec
Simplify model validation specs for `CustomFilter` (#33248) 2024-12-11 09:55:35 +00:00
Matt Jankowski f721e76d13
Avoid double request in `admin/export_domain_allows` controller spec (#33255) 2024-12-11 08:58:59 +00:00
Matt Jankowski f6daf73286
Add non-matching cases to `Report#history` spec (#33253) 2024-12-11 08:24:50 +00:00
Christian Schmidt a70ae28644
Support animated PNGs in media attachments (#28516) 2024-12-11 02:28:21 +00:00
Matt Jankowski 39364346bb
Add coverage for admin/terms/drafts#update and admin/terms/generates#create actions (#33251) 2024-12-10 23:09:36 +00:00
Matt Jankowski 094e2172ec
Add system spec for `Admin::TermsOfService` index view (#33250) 2024-12-10 23:08:14 +00:00
Matt Jankowski e76aff7de5
Standardize uniqueness validation declaration on `Mention` (#33247) 2024-12-10 15:45:13 +00:00
Matt Jankowski 12eb6b0e6d
Add coverage for `TermsOfServicePolicy` class (#33241) 2024-12-10 15:09:44 +00:00
Matt Jankowski 66266ec6fc
Add coverage for `UserMailer#terms_of_service_changed` mailer (#33242) 2024-12-10 14:45:40 +00:00
Matt Jankowski 19c6cb82f6
Add coverage for `Admin::DistributeTermsOfServiceNotificationWorker` class (#33245) 2024-12-10 14:45:14 +00:00
Matt Jankowski c72083ad68
Add system spec for TOS page (#33243) 2024-12-10 14:14:28 +00:00
Matt Jankowski 7d52b24569
Add coverage for `AccountPin` model (#33231) 2024-12-10 13:02:52 +00:00
FND c8c916e657
Change URL truncation to account for ellipses (#33229) 2024-12-10 08:41:06 +00:00
Eugen Rochko 425311e1d9
Change referrer policy to be controlled by header in web UI (#33214) 2024-12-09 22:42:45 +00:00
Eugen Rochko 30aa0df88c
Add terms of service (#33055) 2024-12-09 10:04:46 +00:00
Eugen Rochko 796dd57e1b
Change ability to navigate of unconfirmed users (#33209) 2024-12-09 08:31:56 +00:00
Matt Jankowski 72a4da83fd
Merge duplicate custom css request specs (#33204) 2024-12-06 18:55:47 +00:00
Matt Jankowski 17c02c9210
Remove `thing_type` and `thing_id` columns from settings table (#31971) 2024-12-05 14:34:14 +00:00
Matt Jankowski 86b45a4a48
Add rel alternate rss/json links to tags show html page (#33179) 2024-12-05 11:34:49 +00:00
Claire 21f6780498
Fix deletion of unconfirmed users with Webauthn set (#33186) 2024-12-05 09:38:48 +00:00
Matt Jankowski 0fcf227a92
Add media attachment description limit to instance API response (#33153) 2024-12-04 15:10:20 +00:00
Eugen Rochko 48ea7552dd
Change hashtag trends to be stored in the database instead of redis (#32837)
Co-authored-by: David Roetzel <david@roetzel.de>
2024-12-04 11:59:17 +00:00
Claire c521a62b1e
Add tests for broken mention processing (#33171) 2024-12-04 09:45:35 +00:00
Matt Jankowski e5bea68b20
Fix empty authors preview card serialization (#33151) 2024-12-04 09:05:58 +00:00
Matt Jankowski 6fddf1610c
Fix awkwardly-worded nature of scheduled too soon error (#33156) 2024-12-04 07:43:29 +00:00
Matt Jankowski be43b01eb1
Add coverage for `CustomFilter#expires_in` method (#33142) 2024-12-02 21:52:17 +00:00
Matt Jankowski 2381ed55d7
Add coverage for `Report#unresolved_siblings?` (#33141) 2024-12-02 21:52:12 +00:00
Claire c2817c7fad Merge commit '752d49eefef48262d501ba5fc2006d2c8466a000' into glitch-soc/merge-upstream
Conflicts:
- `app/lib/feed_manager.rb`:
  Upstream changed how notifications from follow subscriptions were handled,
  refactoring this file in the process.
  Conflict is due to glitch-soc having an extra timeline type (direct).
  Ported upstream's changes.
- `app/workers/feed_insert_worker.rb`:
  Ditto.
2024-12-02 21:08:15 +01:00
Matt Jankowski 752d49eefe
Add coverage for `api/v1/push/subscriptions#show` action (#33134) 2024-12-02 15:08:41 +00:00
Jonathan de Jong 360b6d3a44
Fix exclusive lists interfering with notifications (#28162) 2024-12-02 09:26:04 +00:00
Matt Jankowski 3cd308523a
Add shared example for `RankedTrend` concern (#33125) 2024-12-02 00:44:14 +00:00
Claire 7d52d5df0f Merge commit 'c58967c3bd7b7eee0b284ee2b77a48ed9ce6863e' into glitch-soc/merge-upstream
Conflicts:
- `lib/sanitize_ext/sanitize_config.rb`:
  Conflict due to upstream adding fallback support for MathML Core while
  glitch-soc supported slightly more tags than upstream.
  Added the MathML Core fallback code to glitch-soc.
- `spec/lib/sanitize/config_spec.rb`:
  Ditto.
2024-12-01 18:22:00 +01:00
Claire 48827e1210 Merge commit 'a27bafa59653328a0f06bedb1dfb2b6ee92af43d' into glitch-soc/merge-upstream
- `app/controllers/application_controller.rb`:
  Minor conflict due to glitch-soc's theming system.
- `spec/helpers/application_helper_spec.rb`:
  Minor conflict due to glitch-soc's theming system.
2024-12-01 17:36:49 +01:00
Calvin Lee 7f4858b339
Correctly sanitize MathML out of post content (#27107) 2024-11-28 12:02:34 +00:00
Eugen Rochko 48f3ed738f
Fix list error messages (#33082) 2024-11-28 10:13:06 +00:00
Matt Jankowski 0ea9d8164b
Remove `body_class_string` helper (#33072) 2024-11-26 07:19:20 +00:00
Matt Jankowski 74df47ad9c
Add coverage for `Webhook` validations (#33026) 2024-11-25 08:19:16 +00:00
Matt Jankowski ab9c62e8c7
Add coverage for `User` validations (#33028) 2024-11-25 08:18:10 +00:00
Matt Jankowski fd90f04f0e
Add coverage for `UserRole` validations (#33029) 2024-11-25 08:18:07 +00:00
Claire f740611820 Merge commit 'd0753ec276502ea28a1e853cbc6487020a0602e3' into glitch-soc/merge-upstream 2024-11-24 18:56:15 +01:00
Claire 6374937147 Merge commit 'e68b26c8df2056182564abcee230927ed53200c8' into glitch-soc/merge-upstream
Conflicts:
- `app/models/trends/statuses.rb`:
  Upstream added a date restriction to trendable posts, while glitch-soc had
  slightly different conditions.
  Added the date restriction to glitch-soc's conditions.
2024-11-24 16:46:28 +01:00
Christian Schmidt 0518613dd7
LinkDetailsExtractor adjustments (#31357) 2024-11-22 08:00:14 +00:00
Christian Schmidt 7385016837
`rel="me"` check should be case-insenstive (#32238) 2024-11-21 14:37:25 +00:00
Emelia Smith 4517e18b79
Update dependency doorkeeper to v5.8.0 (#33000)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 13:48:30 +00:00
Paulo Vilarinho 2526b32ad3
block scheduled status from frozen users (#30729) 2024-11-20 19:06:41 +00:00
Matt Jankowski b66fbaeec2
Add `AccountWarning` case to `Report#history` spec (#32984) 2024-11-20 07:52:00 +00:00
Eugen Rochko 2b5faa2ba3
Change lists to reflect added and removed users retroactively (#32930) 2024-11-19 10:04:12 +00:00
Matt Jankowski 87e7ad9b8f
Add `LoginActivity` model spec and `BrowserDetection` concern shared example (#32959) 2024-11-19 09:15:05 +00:00
Matt Jankowski 425982841d
Use group/count approach in annual report classes (#32914) 2024-11-19 08:51:34 +00:00
Matt Jankowski 295ad6f19a
Prep work for coverage addition to `ActivityPub::DeliveryWorker` spec (#32944) 2024-11-18 16:37:21 +00:00
Matt Jankowski 30a7986569
Add coverage for fixing the thing with the dates in the search area (#32958) 2024-11-18 15:42:45 +00:00
Matt Jankowski c0c34d35e2
Move self destruct check to `config_for` and add constant for verifier string (#32943) 2024-11-18 09:57:16 +00:00
Eugen Rochko 911d7dbbf6
Fix `min_id` and `max_id` causing error in search API (#32857) 2024-11-18 09:37:01 +00:00
Matt Jankowski 03ee08c2da
Use `nil` instead of `false` for datetime value in spec (#32926) 2024-11-18 09:31:25 +00:00
Matt Jankowski be413d67de
`Form::Import` spec reduce factories (#32924) 2024-11-18 09:22:09 +00:00
Matt Jankowski a1ac2a73ff
Remove remnants of embed views (#32419) 2024-11-16 20:48:10 +00:00
Claire 4f1242964b Merge commit '44d92fa4f6aac5c45ad358287af48cd879f5665e' into glitch-soc/merge-upstream 2024-11-15 18:44:32 +01:00
Matt Jankowski 9d3fcc3546
Remove unused failure action in api/base controller spec (#32905) 2024-11-15 16:10:20 +00:00
Matt Jankowski 7bd7705f59
Combine shared-setup examples across `spec/controllers/auth/*` specs (#32906) 2024-11-15 16:07:26 +00:00
Matt Jankowski 319109029d
Fix logic in "last used at per application" oauth token list (#32912) 2024-11-15 15:52:37 +00:00
Matt Jankowski 297ce9ef44
Move body class to shared partial for web app controller concern views (#31797) 2024-11-15 15:49:26 +00:00
Claire f1ef7b5b43
Fix uploading higher-than-wide GIF profile picture with libvips enabled (#32911) 2024-11-15 15:35:30 +00:00
Matt Jankowski 766358e52b
Add coverage for malformed version cleanup in `SoftwareUpdateCheckService`, add helper query methods (#32876) 2024-11-14 14:03:57 +00:00
Matt Jankowski 62d65504f6
Add `DomainResource` class to wrap MX lookup/normalize (#32864) 2024-11-14 13:47:29 +00:00
Claire e8b6607ece
Fix titles being escaped twice (#32889) 2024-11-14 13:28:00 +00:00
Claire 8f5cbf5370
Fix list creation limit check (#32869) 2024-11-13 10:22:11 +00:00
Matt Jankowski a6d829e86f
Fix error in CLI EmailDomainBlocks when supplying `--with-dns-records` (#32863) 2024-11-13 08:39:58 +00:00
Emelia Smith 2bd56f726a
Add client_secret_expires_at to OAuth Applications (#30317) 2024-11-12 22:06:13 +00:00
Matt Jankowski 884bbf7ae2
Prepare the way for banning a bunch of usernames (#32856) 2024-11-12 15:43:55 +00:00
Matt Jankowski 5d9dde3ec0
Add age/expiry duration constants to `BulkImport` class (#32839) 2024-11-12 08:57:06 +00:00
Matt Jankowski c099797700
Use `mastodon` config namespace to load software update default value via `config_for` (#30534) 2024-11-12 08:28:31 +00:00
Matt Jankowski c78dc23b49
Move account sensitize-related methods to concern (#28865) 2024-11-11 13:08:23 +00:00
Matt Jankowski d033920b7e
Move account silence-related methods to concern (#28866) 2024-11-11 08:29:55 +00:00
Claire f0f807cec7 Merge commit '1e71c4e247eb8900a718b04113ffce9c1b8ad2f4' into glitch-soc/merge-upstream 2024-11-10 13:18:43 +01:00
Matt Jankowski 4ef3a1a38d
Match dependency-generator output for `require_relative` usage (#32800) 2024-11-08 09:55:15 +00:00
Matt Jankowski 870bb06994
Add coverage for misc serializers (#32781) 2024-11-07 15:37:26 +00:00
Matt Jankowski 41227aeb95
Update Rails to version 7.2.2 (#30391) 2024-11-07 14:58:20 +00:00
Claire 2bea74e69d
Avoid latest featured tag use on post removal unless necessary (#32787) 2024-11-06 10:51:54 +00:00
Eugen Rochko 90f4ffa31d
Fix performance of percentile calculation for annual reports (#32765) 2024-11-04 10:11:06 +00:00
Matt Jankowski ff490daa58
Reduce factory generation in `AccountStatusesFilter` spec (#32727) 2024-11-04 09:00:01 +00:00
Claire f624ef2778 Merge commit 'b06fd54c305915527e3a6edc575dc23b623143ef' into glitch-soc/merge-upstream
Conflicts:
- `app/helpers/formatting_helper.rb`:
  Upstream wrapped some code glitch-soc had modified in an OTEL instrumentation span.
  Wrapped the modified code.
2024-11-03 20:51:58 +01:00
Matt Jankowski b231c3c1bf
Drop support for ruby 3.1 (#32363) 2024-10-31 15:12:08 +00:00
Matt Jankowski a20ac20302
Add model spec for `Tombstone` (#32697) 2024-10-31 13:27:47 +00:00
Eugen Rochko c2b498a2b0
Fix IDs not being serialized as strings in annual reports API (#32710) 2024-10-31 09:38:00 +00:00
Emelia Smith e1b7382ea6
Add userinfo oauth endpoint (#32548) 2024-10-30 14:38:10 +00:00