Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

If a censored word had punctuation following it then it is removed when asterisked/censored

Open HammyHavoc opened this issue 9 years ago • 12 comments

Description:

When the blacklist of words to censor is enabled, any word that is censored which had punctuation following it ends up losing the punctuation following the asterisks. So if I send a message asking someone "Please could you bring over the knobs? This guitar is almost done." then the 'knobs' is censored (silly, I know), but the ***** loses the ? following it, which makes the flow of conversation hard to follow.

HammyHavoc avatar Nov 09 '17 05:11 HammyHavoc

I would like to work on this issue:smile:

subham103 avatar Feb 11 '20 20:02 subham103

Can anybody tell me how can we censor/asterisk a word?

subham103 avatar Feb 12 '20 14:02 subham103

@HammyHavoc ^

subham103 avatar Feb 12 '20 19:02 subham103

At this present time, I do not use Rocket.Chat, nor contribute to the development of it. We had to find another solution for our legally blind colleague due to a lack of dark mode and no progress made on that front when we were forced to switch to another solution.

HammyHavoc avatar Feb 12 '20 19:02 HammyHavoc

@ggazzo, can you please tell me how we can censor/asterisk a word, I am facing difficulty in it.

subham103 avatar Feb 13 '20 10:02 subham103

@HammyHavoc @ggazzo @gabriellsh Is this issue still valid?

I am not able to produce it. knobs is by default a badword in rocket.chat I have added custom badword ashwani too and verified.

11

ashwaniYDV avatar Feb 20 '20 14:02 ashwaniYDV

Can anybody tell me how can we censor/asterisk a word?

You can do so by going administraion->messages and then enabling bad words filtering

ashwaniYDV avatar Feb 20 '20 21:02 ashwaniYDV

@HammyHavoc @ggazzo @gabriellsh Is this issue still valid?

I am not able to produce it. knobs is by default a badword in rocket.chat I have added custom badword ashwani too and verified.

11

same here. I am also unable to reproduce this issue. Instead, the problem is when we put a word between two censored words, we unintendedly made that word bold, This issue is opened #16670

subham103 avatar Feb 21 '20 07:02 subham103

@subham103 i have made a pr for the "bold" issue Also i think the bad words filtering should be conditional if settings is toggled

ashwaniYDV avatar Feb 21 '20 07:02 ashwaniYDV

@ashwaniYDV The bad word filtering is already conditional. There is a toggle option (Allow Message bad words filtering) already exist in administraion->messages which upon off will not change the bad words to ****

subham103 avatar Feb 21 '20 13:02 subham103

@subham103 The issue here is that if bad words filtering is on and I enter a message knob is a bad word, then it is saved in the database as **** is a bad word. Now if I turn off the bad word filter from settings, then I expect the message to be knob is a bad word. But it is rendered as **** is a bad word. So expected behaviour should be to not to hardcode the bad words as **** in the database. It should be 100% conditional according to the current settings.

@gabriellsh Please lead us regarding this issue :)

ashwaniYDV avatar Feb 21 '20 14:02 ashwaniYDV

I'll be closing this one as this specific issue doesn't happen. Please, take the discussion to #16670.

gabriellsh avatar Feb 26 '20 16:02 gabriellsh