Commit Graph

9308 Commits (0c443e87e67d4698f38c2818a79391c7524d9080)

Author SHA1 Message Date
sneakers-the-rat 0c443e87e6 add maximum page limit 2024-11-17 00:36:34 -08:00
Jonny Saunders d6e7e88afb Update app/services/activitypub/fetch_all_replies_service.rb
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat 148385ae5e apply changes from patches that couldnt be auto-applied 2024-11-17 00:36:34 -08:00
sneakers-the-rat b85615fce1 remove redundant params - forgot i subclassed
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat 6b08b405b7 tests for the fetch all reply worker
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat 557b5e687f the most basic test you could imagine
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat 887bccd622 Fix limit in fetch_replies_service to not always limit by 5 (which always caused us to only do one page). Rename some variables to make purpose clearer. Return the array of all fetched uris instead of just the number we got
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat fe216c418d Working version of fetch all replies service with global maximum on fetching
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat 4076c4c7d4 rm more spurious formatting
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat a694554cbc rm spurious imports and reformatting
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat 91dbd48994 rm zombie code in fetch_replies_service
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat 3bb59d2715 rm redundant request to fetch replies worker in controller
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat aa19644b80 Remove recursion, separate out into separate workers/services, add limit to global maximum statuses fetched (untested, this might not work yet)
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat 8e6e3346e1 accept review comments https://github.com/NeuromatchAcademy/mastodon/pull/44\#discussion_r1766143286 and https://github.com/NeuromatchAcademy/mastodon/pull/44\#discussion_r1766148179
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat 75878c826d correct number of args to replies worker, recursive fetching is working
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat ee00d205fd don't do it for every create, only do recursive reply expansion when requested from context endpoint, but async
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat 207d95e654 working (i think?) recursive fetch
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
jonny 78751251df committing all ugly with a bunch of logger calls in the middle but we are almost there baby
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
sneakers-the-rat dd5a5acd52 Initial draft of fetching all replies on context load
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
2024-11-17 00:36:34 -08:00
Matt Jankowski a1ac2a73ff
Remove remnants of embed views (#32419) 2024-11-16 20:48:10 +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
Shlee 34d7c9edae
Rails 7+: primary_abstract_class recommendation (#32909) 2024-11-15 15:37:30 +00:00
Claire 0838cf1e05
Fix domain attribution field having autocorrect and autocapitalize enabled (#32903) 2024-11-15 13:37:45 +00:00
github-actions[bot] c546aa57cb
New Crowdin Translations (automated) (#32900)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-15 10:30:11 +00:00
Emelia Smith ddfb3d123b
Improve display of statuses in admin panel (#30813) 2024-11-15 09:38:01 +00:00
Claire 2de018256a
Fix filters not being correctly applied to boosted posts (#32895) 2024-11-14 19:42:43 +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 ec663eaba1
Fix Content Warning and filter states not applying to boosted posts properly (#32887) 2024-11-14 12:50:36 +00:00
github-actions[bot] aaebf142aa
New Crowdin Translations (automated) (#32884)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-14 09:39:33 +00:00
Claire 8f5cbf5370
Fix list creation limit check (#32869) 2024-11-13 10:22:11 +00:00
github-actions[bot] baad795384
New Crowdin Translations (automated) (#32868)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-13 09:33:02 +00:00
Emelia Smith 2bd56f726a
Add client_secret_expires_at to OAuth Applications (#30317) 2024-11-12 22:06:13 +00:00
Claire f5f6273d2b
Move `ALLOWED_PRIVATE_ADDRESSES` parsing to an initializer (#32850) 2024-11-12 13:00:52 +00:00
Eugen Rochko 32e5e1d3f1
Fix a few visual issues with annual reports in web UI (#32807) 2024-11-12 12:35:35 +00:00
Matt Jankowski 5d9dde3ec0
Add age/expiry duration constants to `BulkImport` class (#32839) 2024-11-12 08:57:06 +00:00
Emelia Smith bf609090b1
Fix: prevent linking to pages which require extra permissions (#32843) 2024-11-12 08:55:17 +00:00
github-actions[bot] 0d06d70d11
New Crowdin Translations (automated) (#32811)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-12 08:47:59 +00:00
Matt Jankowski ea6d3ca8c1
Define constants for sampling sizes in `AccountReachFinder` (#32805) 2024-11-12 08:38:08 +00:00
Emelia Smith a34edc211f
Add audit logging to Relays (#32819) 2024-11-12 08:35:08 +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
Emelia Smith aeae152006
Prevent Web::Push notification delivery if notification is outside of TTL window (#32842) 2024-11-11 19:56:28 +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
Christian Schmidt 157fba4698
Backspace hotkey should override default behaviour (#32826) 2024-11-10 16:16:07 +00:00
Matt Jankowski 1e71c4e247
Use enum-generated `IpBlock.severity...` scopes (#31210) 2024-11-08 14:23:52 +00:00
Matt Jankowski 10c895dc84
Use existing arel scopes instead of string ordering (#32801) 2024-11-08 14:21:44 +00:00
Matt Jankowski bde0f1239a
Add `InetContainer` with scopes of `containing` and `contained` (#32802) 2024-11-08 10:08:36 +00:00