You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/tests
Your Name 0d01d5a963 Fix duplicate-key violation when importing remote media attachments
Helpers::importNoteAttachment unconditionally inserted a new Media row per
attachment, so re-importing a remote status (an Announce racing another
inbox job, a re-fetch, or a duplicate url within one activity) hit the
media_status_id_media_path_unique constraint and crashed the queue job with
a 1062 UniqueConstraintViolationException, dropping the boost/import.

Make createMediaAttachment idempotent on (status_id, media_path): skip when
a row already exists, and catch the unique-constraint violation as a
lost-race no-op, returning null so the caller skips re-dispatching storage.

Adds regression tests (re-import no-op, distinct urls still stored,
concurrent-insert returns null).
4 weeks ago
..
Feature Fix duplicate-key violation when importing remote media attachments 4 weeks ago
Unit Fix unauthenticated SSRF in remote media/avatar fetch (variant of CVE-2026-71246) 4 weeks ago
bats fix directory-is-empty and add tests to avoid regressions 3 years ago
CreatesApplication.php Apply Pint formatting to tests/ 4 weeks ago
Pest.php feat: add critical path test suite and fix auth/config issues 4 weeks ago
TestCase.php