Skip to content

Fixes featured hashtag setting page erroring out instead of rejecting invalid tags#12436

Merged
Gargron merged 4 commits intomastodon:masterfrom
ClearlyClaire:fixes/featured_tags
Dec 17, 2019
Merged

Fixes featured hashtag setting page erroring out instead of rejecting invalid tags#12436
Gargron merged 4 commits intomastodon:masterfrom
ClearlyClaire:fixes/featured_tags

Conversation

@ClearlyClaire
Copy link
Copy Markdown
Contributor

@ClearlyClaire ClearlyClaire commented Nov 21, 2019

Fixes #12386

This was caused by Tag#find_or_create_by_names raising a validation error because of a create! call, instead of deferring the validation to save as usual.

This PR reverts #11621 and applies #11622 instead, as I think Tag#find_or_create_by_names should behave as find_or_create and such and not call create!.

@ClearlyClaire ClearlyClaire marked this pull request as ready for review November 21, 2019 12:55
@Gargron Gargron merged commit da2143b into mastodon:master Dec 17, 2019
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.

Adding tags incorrectly gives a white screen

2 participants