Prevent stack overflow when fetching nested comment
Requires https://github.com/LemmyNet/activitypub-federation-rust/pull/145
With this change can you increase the max comment depth and the nested comment api test to 100 without crashing?
Even with your comment its not clear how lazy helps, and shouldnt dereference be called inside the lazy closure?
With this change can you increase the max comment depth and the nested comment api test to 100 without crashing?
It does work with 100. It also works with 500 (it takes 2 minutes though) with additional adjustments including DROP INDEX idx_path_gist.
With this we could theoretically increase the max comment depth, though 50 seems more than enough.