<h4>Groups Post — Infinite Loading Fix</h4><ul><li><strong>CRITICAL Fixed:</strong> Fatal error on savePost — <code>$recipients</code> undefined when <code>post_restriction === 1</code> (restricted group). The code at line 921 only set <code>$recipients</code> inside <code>if (post_restriction === 0)</code>, but line 930 used <code>array_column($recipients, ...)</code> unconditionally. Also <code>$notification</code> and <code>$redirect</code> were undefined in this path. Initialized all three with defaults before the conditional block.</li><li><strong>Fixed:</strong> No error handler on the save post AJAX call — when the controller returned a fatal error (HTML instead of JSON), jQuery's <code>dataType:'JSON'</code> couldn't parse it, the success callback never ran, and <code>swal.close()</code> never executed. The 'Saving your post' loading dialog stayed forever. Added <code>error</code> handler that shows 'Error occurred' sweet alert and closes the loading dialog.</li><li><strong>Fixed:</strong> Added null coalescing on <code>array_column()</code> argument and <code>post_restriction</code> access.</li></ul><p><strong>Files:</strong> controller/newsfeed/newsfeed.controller.php, platform/module/GroupsManager/newsfeed_js.php</p><p><strong>Result:</strong> Posts save successfully, loading dialog closes, post appears in feed.</p>