Handle boosts. Suggest editing toots too. #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi! I'm @22@octodon.social from https://toot.cafe/@zac/109585961042545178. I know I said it should be a tiny change to get PleaseCaption to handle boosts and it was but of course you'd want the bot to say something else when boosts are involved, so I created a new grammar for the boost case and updated the logic to use the that vs the original grammar depending.
Then I noticed that the old grammar only suggested delete-and-redraft. Since Mastodon v4 we can edit toots, but apparently there's a glitch where you have to remove the image and re-add it in order to add captions: https://queer.party/@Rachel_Thorn/109585432701507201
I've signed up for an account for botsin.space but they're reviewing it so I haven't tested it, forgive me. Making this PR untested in case you have an easy way to make sure it works as advertised? If not, no worries! I'll get a second account and test it.See commentary below :)Thanks for this!