A new update is available for [XTR] User Posts in Thread by Offical.
Read more about this product...
[XTR] User Posts in Thread 1.0.3
Update highlights
This maintenance release addresses a critical bug that caused server errors when filtering posts by a user who has no posts in the thread.- Structured Data TypeError Fix: When applying the user post filter (starter_id parameter) to view posts from a specific user, if that user had no posts in the thread, a TypeError was thrown: "Argument #1 ($firstDisplayedPost) must be of type XF\Entity\Post, null given". This occurred because the structured data (JSON-LD) generation expected a valid Post entity, but received null when no posts matched the filter. The fix ensures that when the filtered first post is null, the thread's actual first post is used for structured data generation, or the structured data block is skipped entirely if no valid post is available.
Complete Change Log
- Fixed: Resolved a critical TypeError that occurred when using the user post filter (starter_id) on threads where the specified user had no posts. The error "Argument #1 ($firstDisplayedPost) must be of type XF\Entity\Post, null given" in getLdStructuredData() has been fixed.
Read more about this product...