# Neuer Benutzer, der auf Einladung reagiert, schlägt fehl, word\_watcher.rb:258:in \`censor\_text\_with\_regexp'

**URL:** https://meta.discourse.org/t/new-user-responding-to-invite-fails-word-watcher-rbin-censor-text-with-regexp/380920
**Category:** Bug
**Tags:** invites, watched-words, fixed
**Created:** [29. August 2025 um 16:48 UTC](https://meta.discourse.org/t/new-user-responding-to-invite-fails-word-watcher-rbin-censor-text-with-regexp/380920 "2025-08-29T16:48:46Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [31. August 2025 um 10:23 UTC](https://meta.discourse.org/t/new-user-responding-to-invite-fails-word-watcher-rbin-censor-text-with-regexp/380920/14 "2025-08-31T10:23:47Z")

</div>

Ok, danke für den Bericht und entschuldigen Sie die dadurch verursachten Probleme. Das sollte es beheben:

> <https://github.com/discourse/discourse/pull/34646>
>
> A confirm field will always be a Boolean so there's no need to check for it. Thi…s was causing an error as we were trying to treat it as a string in the watched word code.
> 
> Example error:
> 
> \`\`\`
> NoMethodError (undefined method \`gsub' for true)
> app/services/word\_watcher.rb:258:in \`censor\_text\_with\_regexp'
> app/services/word\_watcher.rb:146:in \`block in censor\_text'
> app/services/word\_watcher.rb:146:in \`each'
> app/services/word\_watcher.rb:146:in \`inject'
> app/services/word\_watcher.rb:146:in \`censor\_text'
> app/models/user.rb:1612:in \`block in apply\_watched\_words'
> app/models/user.rb:1611:in \`each'
> app/models/user.rb:1611:in \`apply\_watched\_words'
> app/models/invite\_redeemer.rb:156:in \`create\_user\_from\_invite'
> app/models/invite\_redeemer.rb:220:in \`invited\_user'
> app/models/invite\_redeemer.rb:277:in \`add\_user\_to\_groups'
> app/models/invite\_redeemer.rb:238:in \`process\_invitation'
> app/models/invite\_redeemer.rb:56:in \`block in redeem'
> app/models/invite\_redeemer.rb:54:in \`redeem'
> app/models/invite.rb:239:in \`redeem'
> \`\`\`

Ich werde versuchen, es am Montag zusammenzuführen.

---

_[View the full topic](https://meta.discourse.org/t/new-user-responding-to-invite-fails-word-watcher-rbin-censor-text-with-regexp/380920)._
