trypost/tests
Paulo Castellano bd3a349f56
fix: skip removed social accounts when duplicating posts (#226)
* fix: skip removed social accounts when duplicating posts

DuplicatePost was copying orphan post_platform rows left after disconnect
(null social_account_id with snapshot name/username/avatar), which showed
broken avatars in the draft editor. Skip platforms without a live account.

Co-authored-by: Paulo Castellano <hello@paulocastellano.com>

* refactor: filter duplicate platforms with whereHas

Use whereHas('socialAccount') instead of null checks in the loop.

Co-authored-by: Paulo Castellano <hello@paulocastellano.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-03 13:04:42 -03:00
..
Browser fix(mobile): polish automations, dialogs, workspaces and post views 2026-07-18 10:58:07 -03:00
Feature fix: skip removed social accounts when duplicating posts (#226) 2026-08-03 13:04:42 -03:00
fixtures Add frontend unit tests and harden the cropper's test coverage 2026-07-04 09:56:38 -03:00
Unit fix: keep post drafts unscheduled by default (#209) 2026-08-01 17:39:18 -03:00
BrowserTestCase.php Address review: cropper mime/zoom/error fixes, harden browser test 2026-07-03 22:07:23 -03:00
CreatesApplication.php feat: Establish a dedicated testing environment with .env.testing, CreatesApplication trait, and Language model factory, integrating language selection into user profile tests and adjusting the languages table migration. 2026-01-18 19:56:04 -03:00
Pest.php Allow account owners to delete workspaces (#208) 2026-08-01 13:00:38 -04:00
TestCase.php Address review: cropper mime/zoom/error fixes, harden browser test 2026-07-03 22:07:23 -03:00