Commit Graph

1336 Commits (7a395989b7dad5e287196c349e4254ff4cf3e2a0)

Author SHA1 Message Date
Claire 75a3da1abf Change logged-out WebUI HTML pages to be cached for a few seconds () 2023-04-28 10:27:26 +02:00
Claire 3acc54f7bf Fix /api/v1/custom_emojis being cached even when unauthenticated API access is disallowed () 2023-04-28 10:01:38 +02:00
Claire e82696a4b9 Fix /api/v1/instance/domain_blocks being unconditionally cached () 2023-04-26 11:42:47 +02:00
Claire 8c30221a41 Fix /actor needlessly reading session cookie and varying on Signature () 2023-04-26 11:42:26 +02:00
Claire 0cfbe4c4af Fix some user-independent endpoints potentially reading session cookies () 2023-04-25 22:14:44 +02:00
Claire 31bd0da41f Fix anonymous visitors getting a session cookie on first visit () 2023-04-25 16:51:38 +02:00
Eugen Rochko b61ff36351 Change unauthenticated responses to be cached in REST API () 2023-04-25 15:41:34 +02:00
Claire 24d5626e02 Fix crash when SSO_ACCOUNT_SETTINGS is not defined () 2023-04-24 20:26:04 +02:00
Matt Jankowski f01a643897 Remove instance variables from helper usage () 2023-04-23 22:35:54 +02:00
Claire d8e7a72597 Fix caching logic with regards to Accept-Language, Cookie, and Signature () 2023-04-23 22:27:24 +02:00
Eugen Rochko 3ca64638d4 Refactor `Cache-Control` and `Vary` definitions () 2023-04-19 16:07:29 +02:00
Robert R George 335b53ab48 Add trend management to admin API () 2023-04-18 11:33:30 +02:00
Eugen Rochko 9a7a4d79ec Add progress indicator to sign-up flow () 2023-04-16 07:01:24 +02:00
Matt Jankowski d30c48c975 Remove unused methods in 2FA OTP Auth Controller () 2023-04-07 14:13:53 +02:00
Claire caf209b28b Fix user archive takeouts when using OpenStack Swift () 2023-04-05 19:31:49 +02:00
Claire db2b09bdd4 Fix invalid/expired invites being processed on sign-up () 2023-03-31 21:42:28 +02:00
Eugen Rochko c75fccf033 Change user settings to be stored in a more optimal way ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-03-30 14:44:00 +02:00
Claire af57bcd3cf Fix user archive takeout when using OpenStack Swift or S3 providers with no ACL support () 2023-03-27 17:07:37 +02:00
Matt Jankowski 85e90f4b7d Move link header setting to after_action () 2023-03-26 00:40:01 +01:00
Matt Jankowski cc5208f020 Add allow_other_host in redirects which may go outside app () 2023-03-26 00:38:32 +01:00
Claire 12eb6740d1 Fix Rails cache namespace being overriden with `v2` for cached statuses () 2023-03-22 15:47:44 +01:00
Matt Jankowski 7a82026971 Remove references to non-existent actions () 2023-03-20 20:03:44 +01:00
Jean byroot Boussier dfc075c9d4 Workaround the ActiveRecord / Marshal serialization bug on Ruby 3.2 ()
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2023-03-17 14:37:30 +01:00
CSDUMMI e7c5ccafca Link to the Identity provider's account settings from the account settings ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-03-17 10:09:01 +01:00
Eugen Rochko ef0c6a43ed Change user backups to use expiring URLs for download when possible () 2023-03-16 22:46:52 +01:00
Christian Schmidt 7583523bf0 Replace `Status#translatable?` with language matrix in separate endpoint () 2023-03-16 11:07:24 +01:00
Nick Schonning 0717d1b058 Autofix Rubocop Style/RedundantArgument () 2023-03-16 10:34:00 +09:00
Claire 8a618c8eca Fix misleading error code when receiving invalid WebAuthn credentials () 2023-03-15 04:15:20 +01:00
CSDUMMI cfc04637b5 Redirect users to SLO at the IdP after logging them out of Mastodon. () 2023-03-15 03:52:40 +01:00
CSDUMMI 5f9f43d051 Prefer the stored location as after_sign_in_path in Omniauth Callback Controller () 2023-03-13 00:06:27 +01:00
Claire 6943192f5e Fix server error when failing to follow back followers from `/relationships` () 2023-03-03 20:36:18 +01:00
Claire 7bc43c91a0 Fix “Remove all followers from the selected domains” being more destructive than it claims () 2023-03-03 20:25:15 +01:00
Nick Schonning a0e4d69c12 Autofix Rubocop Rails/FindById () 2023-02-21 10:21:48 +09:00
Nick Schonning e6312104c7 Autofix Rubocop remaining Layout rules () 2023-02-20 06:58:28 +01:00
Nick Schonning ae51248ffe Enable Rubocop HTTP status rules () 2023-02-20 11:16:40 +09:00
Nick Schonning 49f1168050 Autofix Rubocop Style/RedundantBegin () 2023-02-19 07:09:40 +09:00
Nick Schonning 7f8439ee07 Autofix Rubocop Style/TrailingCommaInArguments () 2023-02-18 12:39:58 +01:00
Nick Schonning 793f8c7dd5 Autofix Rubocop Style/IfUnlessModifier () 2023-02-18 12:37:47 +01:00
Nick Schonning b7d4391c4d Autofix Rubocop Lint/AmbiguousOperatorPrecedence () 2023-02-18 04:30:23 +01:00
Claire 0ae0740826 Add API parameter to safeguard unexpect mentions in new posts () 2023-02-13 16:36:29 +01:00
Claire 1c08aef482 Remove posts count and last posts from ActivityPub representation of hashtag collections () 2023-02-08 17:57:25 +01:00
Nick Schonning e0a02f8696 Apply Rubocop Style/NegatedIfElseCondition () 2023-02-08 07:07:36 +01:00
Nick Schonning e276e530ea Apply Rubocop Performance/RedundantSplitRegexpArgument ()
* Apply Rubocop Performance/RedundantSplitRegexpArgument

* Update app/controllers/concerns/signature_verification.rb
2023-02-08 02:25:20 +01:00
Claire 3536a88bc9 Change `POST /settings/applications/:id` to regenerate token on scopes change ()
Fixes 
2023-02-02 12:03:49 +01:00
Eugen Rochko 99787fa30d Change notifications per page from 15 to 40 in REST API () 2023-02-01 11:23:54 +01:00
Claire b131e01db7 Add more specific error messages to HTTP signature verification ()
* Return specific error on failure to parse Date header

* Add error message when preferredUsername is not set

* Change error report to be JSON and include more details

* Change error report to differentiate unknown account and failed refresh

* Add tests
2023-01-18 16:47:56 +01:00
Claire 592fe1a3bd Add confirmation screen when handling reports ()
* Add confirmation screen on moderation actions

* Add flash notice when a report has been processed

* Refactor tests

* Add tests
2023-01-18 16:40:09 +01:00
Claire 42aa864c84 Add support for editing media description and focus point of already-posted statuses ()
* Add backend support for editing media attachments of existing posts

* Allow editing media attachments of already-posted toots

* Add tests
2023-01-18 16:33:55 +01:00
Claire 0ad00e71c5 Fix /api/v1/admin/trends/tags using wrong serializer ()
* Fix /api/v1/admin/trends/tags using wrong serializer

Fix regression from 

* Only use `REST::Admin::TagSerializer` when the user can `manage_taxonomies`

* Fix admin trending hashtag component to not link if `id` is unknown
2023-01-18 16:28:18 +01:00
Claire 0687eb20da Change domain block CSV parsing to be more robust and handle more lists ()
* Change domain block CSV parsing to be more robust and handle more lists

* Add some tests

* Improve domain block import validation and reporting
2023-01-18 16:20:52 +01:00