Commit graph

1464 commits

Author SHA1 Message Date
Nick Schonning
b8f17330ea Autofix Rubocop Rails/Pluck () 2023-02-20 02:28:40 +01:00
Nick Schonning
e08a42e1d7 Autofix Rubocop RSpec/EmptyLineAfterHook () 2023-02-19 14:54:34 +09:00
Nick Schonning
be1ec56c6d Autofix Rubocop Style/StringLiterals () 2023-02-19 07:38:14 +09:00
Nick Schonning
28b19386c1 Autofix Rubocop RSpec/LetBeforeExamples () 2023-02-19 07:17:59 +09:00
Nick Schonning
bfc66a0454 Autofix Rubocop Style/EmptyLambdaParameter () 2023-02-19 07:12:06 +09:00
Nick Schonning
a63cb79201 Autofix Rubocop RSpec/EmptyLineAfterFinalLet () 2023-02-19 07:10:19 +09:00
Nick Schonning
e9074c3eb5 Autofix Rubocop Style/BlockDelimiters () 2023-02-19 07:00:17 +09:00
Nick Schonning
2e4833b246 Autofix Rubocop RSpec/Capybara/FeatureMethods () 2023-02-19 06:59:00 +09:00
Nick Schonning
6988b04ec7 Autofix Rubocop Style/TrailingCommaInArrayLiteral () 2023-02-19 06:54:30 +09:00
Nick Schonning
4dc470fbee Autofix Rubocop Style/TrailingCommaInHashLiteral () 2023-02-18 23:33:41 +09:00
Nick Schonning
a2129d336a Autofix Rubocop RSpec/ExcessiveDocstringSpacing () 2023-02-18 12:47:37 +01: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
bc31a28361 Apply Rubocop Style/RedundantConstantBase () 2023-02-18 04:30:03 +01:00
Nick Schonning
35dbf602f2 Autofix Rubocop Lint/ParenthesesAsGroupedExpression () 2023-02-18 04:00:05 +01:00
Nick Schonning
c402904fa1 Enable Rubocop RSpec/HooksBeforeExamples () 2023-02-18 03:59:57 +01:00
Nick Schonning
298f61ecef Autofix Rubocop Style/RedundantPercentQ () 2023-02-18 03:32:57 +01:00
Nick Schonning
f8947c2042 Autofix Rubocop RSpec/ExampleWording () 2023-02-18 03:26:20 +01:00
Nick Schonning
24f4789d2b Enable Rubocop RSpec/MultipleDescribes () 2023-02-18 03:25:47 +01:00
Nick Schonning
92d606bc98 Autofix Rubocop RSpec/ClassCheck () 2023-02-18 03:24:16 +01:00
Nick Schonning
a71a0802d6 Autofix Rubocop Lint/SymbolConversion () 2023-02-18 03:23:49 +01:00
Nick Schonning
efcf9f0076 Autofix Rubocop Lint/AmbiguousOperator () 2023-02-18 03:22:01 +01:00
Nick Schonning
8fa4163574 Enable Rubocop Style/NumericLiterals () 2023-02-18 11:05:57 +09:00
Nick Schonning
31ca76fe2c Run rubocop formatting except line length () 2023-02-18 06:56:20 +09:00
Nick Schonning
a45f8ff02d Autofix Rubocop RSpec/EmptyLineAfterExample () 2023-02-17 21:46:00 +09:00
Nick Schonning
284a6902cc Autofix Rubocop RSpec/BeNil () 2023-02-17 21:45:27 +09:00
Nick Schonning
c754596ce3 Autofix Rubocop Style/NestedParenthesizedCalls () 2023-02-17 21:43:10 +09:00
Nick Schonning
cb763ecb74 Autofix Rubocop Style/MethodCallWithoutArgsParentheses () 2023-02-17 21:36:14 +09:00
Claire
d706570d30 Add memorial attribute to REST API () 2023-02-14 13:50:55 +01:00
Claire
0ae0740826 Add API parameter to safeguard unexpect mentions in new posts () 2023-02-13 16:36:29 +01:00
Varun Sharma
1ac0afccc2 Add tests to indicate inclusion of self replies in statuses endpoint () 2023-02-13 16:04:26 +01:00
Claire
5410c06ca1 Add tests for REST::AccountSerializer () 2023-02-13 13:23:59 +01:00
Claire
ea4cffac37 Fix unbounded recursion in post discovery ()
* Add a limit to how many posts can get fetched as a result of a single request

* Add tests

* Always pass `request_id` when processing `Announce` activities

---------

Co-authored-by: nametoolong <nametoolong@users.noreply.github.com>
2023-02-10 22:16:37 +01:00
Nick Schonning
ae45c9ccd4 Apply Rubocop Rails/WhereNot ()
* Apply Rubocop Rails/WhereNot

* Update spec for where.not
2023-02-08 10:39:57 +01:00
Nick Schonning
8a2b91488a Apply Rubocop Style/ExpandPathArguments () 2023-02-08 07:06:20 +01:00
Nick Schonning
38ec6d27d8 Autofix Rails/EagerEvaluationLogMessage ()
* Autofix Rails/EagerEvaluationLogMessage

* Update spec for debug block syntax
2023-02-07 03:44:36 +01:00
Claire
a173d5248f Fix UserCleanupScheduler crash when an unconfirmed account has a moderation note ()
* Fix `UserCleanupScheduler` crash when an unconfirmed account has a moderation note

* Add tests
2023-02-07 01:14:44 +01:00
Claire
3536a88bc9 Change POST /settings/applications/:id to regenerate token on scopes change ()
Fixes 
2023-02-02 12:03:49 +01:00
Claire
9e5f274ba9 Add roles attribute to Account entities in REST API () 2023-01-25 19:55:40 +01:00
Claire
1c279cca28 Fix email with empty domain name labels passing validation ()
* Fix email with empty domain name labels passing validation

`EmailMxValidator` would allow empty labels because `Resolv::DNS` is
particularly lenient about them, but the email would be invalid and
unusable.

* Add tests
2023-01-24 20:18:41 +01:00
Claire
d28bbdfd48 Fix account activation being triggered before email confirmation ()
* Add tests

* Fix account activation being triggered before email confirmation

Fixes 
2023-01-24 19:40:21 +01:00
Markus Unterwaditzer
4a902cc7f6 Suppress AddressFamilyError in link verification ()
* Suppress AddressFamilyError

* clarify comment
2023-01-23 13:05:54 +01:00
Claire
1e9d799c0a Add missing policy attribute to WebPushSubscriptionSerializer ()
* Add missing `policy` attribute to `WebPushSubscriptionSerializer`

Fixes 

* Add tests
2023-01-23 13:05:30 +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
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
Claire
64952cef52 Fix crash when marking statuses as sensitive while some statuses are deleted ()
* Do not offer to mark statuses as sensitive if there is no undeleted status with media attachments

* Fix crash when marking statuses as sensitive while some statuses are deleted

Fixes 

* Fix multiple strikes being created for a single report when selecting “Mark as sensitive”

* Add tests
2023-01-13 10:46:52 +01:00
Claire
614dd22095 Fix sanitizer parsing link text as HTML when stripping unsupported links () 2023-01-11 22:21:10 +01:00
Markus Unterwaditzer
b7f37e68ad fix: allow verification when page size exceeds 1MB (using HTML5 parser) ()
* fix: allow verification when page size exceeds 1MB
Truncates the page after 1MB instead

Closes 

* switch to HTML5 parser, fix rubocop errors

* undo rubocop fixes

Co-authored-by: Chris Zubak-Skees <chriszs@gmail.com>
2023-01-11 21:59:13 +01:00