-
- Downloads
Fix unbounded recursion in post discovery (#23506)
* 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>
Showing
- app/lib/activitypub/activity.rb 4 additions, 3 deletionsapp/lib/activitypub/activity.rb
- app/lib/activitypub/activity/create.rb 3 additions, 3 deletionsapp/lib/activitypub/activity/create.rb
- app/services/activitypub/fetch_remote_status_service.rb 11 additions, 2 deletionsapp/services/activitypub/fetch_remote_status_service.rb
- app/services/activitypub/fetch_replies_service.rb 2 additions, 2 deletionsapp/services/activitypub/fetch_replies_service.rb
- app/services/fetch_remote_status_service.rb 2 additions, 2 deletionsapp/services/fetch_remote_status_service.rb
- app/services/resolve_url_service.rb 1 addition, 1 deletionapp/services/resolve_url_service.rb
- app/workers/activitypub/fetch_replies_worker.rb 2 additions, 2 deletionsapp/workers/activitypub/fetch_replies_worker.rb
- app/workers/fetch_reply_worker.rb 2 additions, 2 deletionsapp/workers/fetch_reply_worker.rb
- app/workers/thread_resolve_worker.rb 2 additions, 2 deletionsapp/workers/thread_resolve_worker.rb
- spec/lib/activitypub/activity/add_spec.rb 2 additions, 2 deletionsspec/lib/activitypub/activity/add_spec.rb
- spec/services/activitypub/fetch_remote_status_service_spec.rb 94 additions, 0 deletions.../services/activitypub/fetch_remote_status_service_spec.rb
- spec/services/fetch_remote_status_service_spec.rb 1 addition, 1 deletionspec/services/fetch_remote_status_service_spec.rb
Loading
Please register or sign in to comment