fictionco / fiction

(Join Waiting List) Personal Marketing Platform. A powerful platform for your online identity.
https://www.fiction.com
1.42k stars 109 forks source link

[bug] Forum categories are case-sensitive, but not covered in the code #237

Closed ash0080 closed 4 years ago

ash0080 commented 4 years ago

Reason for this issue If you create a category string with Uppercase the filter function won't work, because the category string is not match actually

Steps to Reproduce

2020-10-20_12-35-43 (2) 2020-10-20_12-35-43 (1)

ash0080 commented 4 years ago

After a bit of fiddling, I think it's better to split the category into the label and _id fields, otherwise, we need to consider spaces, special characters, and so on.

I'm guessing it's probably the same for tags, not confirmed yet.

Or use the i18n for this purpose?

ash0080 commented 4 years ago

Sorry I've found the right way. as a ref here

categories: [
  {
    name:  'how to &&&& TEST(what erve)',
    value:' howto'
  }
]