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 "tootctl media remove-orphans" crashing on “Import” files #13685

Merged
merged 2 commits into from
May 9, 2020

Conversation

ClearlyClaire
Copy link
Contributor

Paperclip pluralizes attachment names, so we use String#singularize to recover the field, except “data” is already plural and 'data.singularize' is “datum”, which doesn't correspond to the field name.

@ClearlyClaire ClearlyClaire force-pushed the fixes/remove-orphans_imports branch 2 times, most recently from 053c30e to e34614c Compare May 9, 2020 15:11
lib/mastodon/media_cli.rb Outdated Show resolved Hide resolved
@Gargron Gargron merged commit 34756cc into mastodon:master May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants