mirror of https://github.com/pixelfed/pixelfed
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.
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 | |
|---|---|---|
| .. | ||
| Account | 4 weeks ago | |
| Api | 4 weeks ago | |
| Auth | 4 weeks ago | |
| AuthScope | 4 weeks ago | |
| Compose | 4 weeks ago | |
| CriticalRoutes | 4 weeks ago | |
| Federation | 4 weeks ago | |
| Framework | 4 weeks ago | |
| Security | 4 weeks ago | |
| Settings | 4 weeks ago | |
| ActivityPubDeliveryServiceTest.php | 4 weeks ago | |
| AdminRemoveCwTest.php | 4 weeks ago | |
| CommentPrivatePostTest.php | 4 weeks ago | |
| DeleteWorkerAuthorizationTest.php | 4 weeks ago | |
| HttpClientMigrationTest.php | 4 weeks ago | |
| LoginTest.php | 1 year ago | |
| ModelNamespaceMigrationTest.php | 4 weeks ago | |
| NotificationServiceTest.php | 4 weeks ago | |
| RemoteOidcTest.php | 4 weeks ago | |
| ValidUsernameTest.php | 4 weeks ago | |