-
Notifications
You must be signed in to change notification settings - Fork 32
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
Remove old media from plugin? #128
Comments
Makes sense, I know of the issue but haven't gotten to it! There will be some issues with previously published TWiN issues containing stale image urls -> but I'm not sure how to solve that without storing the images myself, which I will not do at this time. I'd likely go with deleting stale images that are no longer available in the readme, this would be the relevant code if anyone wants to pick this up dotfyle/src/lib/server/sync/plugins/sync.ts Lines 91 to 104 in 637f333
|
I tried making a patch for this issue in PR #140, but I ran a few more testes and realized I still need to do some more work on it, because my delete query is crashing the seeder. I closed the PR for now because Its not working code I'll try and work on it more tomorrow. |
I have a plugin in Dotfyle where there is an image that no longer exists on the main branch but persists on the plugin page.
It would be good (as an author) to have an option to clean up old media. Or even if there was some additional logic in the media indexer to remove legacy images etc.
The text was updated successfully, but these errors were encountered: