Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix attachments of edited statuses not being fetched #21565

Conversation

ClearlyClaire
Copy link
Contributor

@ClearlyClaire ClearlyClaire commented Nov 24, 2022

Downloading new media attachments would often fail because RedownloadMediaWorker#perform would execute before the transaction gets committed to the database.

I decided to make it fetch the attachments synchronously to mirror the behavior of status creation, since ActivityPub::ProcessStatusUpdateService is called in similar contexts.

@ClearlyClaire ClearlyClaire force-pushed the fixes/process-update-download-media-attachments branch from 74c1ae8 to 116f745 Compare November 24, 2022 15:55
@ineffyble ineffyble added the bug Something isn't working label Nov 25, 2022
@Gargron Gargron merged commit 625216d into mastodon:main Nov 27, 2022
@ineffyble ineffyble mentioned this pull request Nov 30, 2022
nametoolong pushed a commit to nametoolong/nuage that referenced this pull request Jan 12, 2023
* Fix attachments of edited statuses not being fetched

* Fix tests
ClearlyClaire added a commit to ClearlyClaire/mastodon that referenced this pull request Feb 9, 2023
* Fix attachments of edited statuses not being fetched

* Fix tests
ClearlyClaire added a commit that referenced this pull request Feb 9, 2023
* Fix attachments of edited statuses not being fetched

* Fix tests
atsu1125 pushed a commit to atsu1125/mastodon that referenced this pull request Feb 17, 2023
…mastodon#23485)

* Fix attachments of edited statuses not being fetched

* Fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants