Commit Graph

191 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 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 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 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
Jonny Saunders 9074c1fac9
Use `likes` and `shares` totalItems on status creations and updates (#32620) 2024-10-28 04:55:18 +00:00
Matt Jankowski 258dce1256
Add `OpenSSL::SSL::SSLError` to http connection errors wrapper (#32307) 2024-10-08 14:59:51 +00:00
Matt Jankowski e8ec6667bd
Extract wrapper constant for `HTTP::*` error classes (#32285) 2024-10-08 13:53:35 +00:00
Claire 7b92cf3b47
Fix unneeded requests to blocked domains when receiving relayed signed activities from them (#31161) 2024-10-01 12:52:13 +00:00
Matt Jankowski e975b55c24
Remove `WebfingerHelper` module & move usage inline (#31203) 2024-10-01 09:54:42 +00:00
Claire 8afa3bb2fa
Change Mastodon to issue correctly-signed queries by default (#31994) 2024-09-20 10:10:09 +00:00
Matt Jankowski 5405bdd344
Remove unused E2EE messaging code (#31193) 2024-09-18 09:27:43 +00:00
Eugen Rochko e0c27a5047
Add ability to manage which websites can credit you in link previews (#31819) 2024-09-10 12:00:40 +00:00
Adam Niedzielski cd0ca4b994
Select correct self link when parsing Webfinger response (#31110) 2024-07-23 14:42:31 +00:00
Matt Jankowski c61e356475
Add `Status::MEDIA_ATTACHMENTS_LIMIT` configuration constant (#30433) 2024-05-27 09:49:44 +00:00
Claire 9d8dfeb5fb
Fix processing of `Link` objects in `Image` objects (#29335) 2024-02-22 22:27:24 +01:00
Claire 1726085db5
Merge pull request from GHSA-3fjr-858r-92rw
* Fix insufficient origin validation

* Bump version to 4.3.0-alpha.1
2024-02-01 15:56:46 +01:00
Matt Jankowski ceade78182
Fix `Rails/WhereExists` cop in app/services (#28853) 2024-01-23 11:41:34 +00:00
Claire cf2a2ed71c
Fix processing of compacted single-item JSON-LD collections (#28816) 2024-01-19 12:43:10 +00:00
Jonathan de Jong de09176ab9
Retry 401 errors on replies fetching (#28788)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-01-19 09:18:21 +00:00
Jonathan de Jong d0a5ebf914
Fix error when encountering malformed Tag objects from Kbin (#28235) 2023-12-05 13:59:15 +00:00
Claire bac9e0b55d
Add variable delay before link verification of remote account links (#27774) 2023-11-13 16:17:05 +00:00
Eugen Rochko 0d14fcebae
Change link previews to keep original URL from the status (#27312) 2023-11-13 09:58:28 +00:00
Matt Jankowski 0c4e7c06dc
Fix `Rails/FindEach` cop (#26886) 2023-11-06 15:53:29 +00:00
Jeong Arm 8f998cd96a
Handle featured collections without items (#27581) 2023-10-27 02:36:22 +00:00
Matt Jankowski bcd0171e5e
Fix `Lint/UselessAssignment` cop (#27472) 2023-10-19 16:55:06 +02:00
Claire 6273416292
Fix post edits not being forwarded as expected (#26936) 2023-09-15 19:54:32 +02:00
Robert R George cf6f70799b
Add support for federating `memorial` attribute (#26583) 2023-08-23 08:27:24 +02:00
Claire 90ec88d58b
Add support for `indexable` attribute on remote actors (#26485)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
2023-08-14 18:54:51 +02:00
Claire 1e3b19230a
Add stricter protocol fields validation for accounts (#25937) 2023-07-20 18:23:48 +02:00
Jeong Arm 664b0ca8cb
Check if json body is null on Activitipub::ProcessingWorker (#26021) 2023-07-17 15:51:30 +02:00
Claire 999c343946
Fix remote accounts being possibly persisted to database with incomplete protocol values (#25886) 2023-07-10 18:42:19 +02:00
Matt Jankowski 668a19a2f3
Fix Performance/DeletePrefix cop (#24796) 2023-05-02 21:07:45 +02:00
Matt Jankowski f1c1dd0118
Rename `with_lock` to `with_redis_lock` to avoid confusion with ActiveRecord's method (#24741) 2023-05-02 18:16:07 +02:00
Claire a89b02af92
Check domain suspensions before trying to fetch resources (#24535) 2023-05-02 15:22:19 +02:00
Matt Jankowski 0a5f0a8b20
Remove instance variables from helper usage (#24203) 2023-04-23 22:35:54 +02:00
Nick Schonning 4ff44be134
Autofix Rubocop Rails/Blank (#23765) 2023-02-22 09:57:56 +09:00
Nick Schonning 717683d1c3
Autofix Rubocop remaining Layout rules (#23679) 2023-02-20 06:58:28 +01:00
Nick Schonning 2177daeae9
Autofix Rubocop Style/RedundantBegin (#23703) 2023-02-19 07:09:40 +09:00
Nick Schonning e2a3ebb271
Autofix Rubocop Style/IfUnlessModifier (#23697) 2023-02-18 12:37:47 +01:00
Nick Schonning 669f6d2c0a
Run rubocop formatting except line length (#23632) 2023-02-18 06:56:20 +09:00