• v0.4.1 eaefcff9c9

    Release 0.4.1
    All checks were successful
    Create Release Package / build-release (push) Successful in 57s
    Stable

    magdev released this 2026-02-02 15:37:47 +00:00 | 18 commits to main since this release

    Fixed

    • Critical memory leak causing "Allowed memory size exhausted" errors in Twig's StagingExtension
      • Root cause: apply_filters('the_content') in get_post_data() triggered shortcode processing, causing infinite recursion when post content contained FediStream shortcodes
      • Added recursion depth tracking with MAX_RECURSION_DEPTH = 3 to prevent runaway nesting
      • Nested items now skip the_content filter, using wp_kses_post() instead
      • Nested data loading (albums within artists, tracks within albums) is now properly bounded

    Changed

    • Made get_artist_data(), get_album_data(), get_track_data(), and get_playlist_data() public methods in TemplateLoader (previously private but called externally)
    • These methods now accept both int post IDs and WP_Post objects for flexibility
    • Added $load_nested parameter to control whether nested items are fully loaded or just counted
    Downloads