PRX / publish.prx.org

Dovetail podcast CMS frontend
https://publish.prx.org
GNU Affero General Public License v3.0
2 stars 2 forks source link

Image caption field limited length #733

Open kookster opened 3 years ago

kookster commented 3 years ago

Got an error in NR

Api::StoryImagesController#createMysql2::Error: Data too long for column 'caption' at row 1

Looks like someone put a very long caption on an image, and it failed to save. We should either increase the field size, or maybe we need to validate on the FE or in the model before save.

cavis commented 3 years ago

Yep, on the Publish side, it looks like we have no validators on the image model. Whereas the audio model over in Styleguide does have validators.