Error when posting nested chat

[chat quote="How_To_Roblox;2741;2022-05-15T16:24:11Z" channel="The Chat Feedback topic"]
[chat quote="JammyDodger;2576;2022-05-14T14:04:06Z" channel="Chat on a topic test!"]
I have 'silence user' and 'rebuild html', and in the select option I also have 'move to channel' as well as the normal 'quote in topic'
[/chat]

Should probably add a move to topic button for long conversations you want to be easy to find/to keep the channel clean.
[/chat]

Attempting to paste the above nested chat quote in a post doesn’t show in the preview, and gives a 500 error on ‘reply’

Uncaught TypeError: t.attrs[r][1] is null
Message

MiniRacer::RuntimeError (TypeError: Cannot read properties of null (reading 'indexOf'))
lib/pretty_text.rb:242:in `block in markdown'
lib/pretty_text.rb:582:in `block in protect'
lib/pretty_text.rb:581:in `synchronize'
lib/pretty_text.rb:581:in `protect'
lib/pretty_text.rb:185:in `markdown'
lib/pretty_text.rb:314:in `cook'
lib/new_post_manager.rb:215:in `block in perform'
lib/new_post_manager.rb:214:in `any?'
lib/new_post_manager.rb:214:in `perform'
app/controllers/posts_controller.rb:196:in `create'
app/controllers/application_controller.rb:411:in `block in with_resolved_locale'
app/controllers/application_controller.rb:411:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:368:in `call'
config/initializers/008-rack-cors.rb:25:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:202:in `call'

Backtrace

JavaScript at addImage (<anonymous>:13:31)
JavaScript at processToken (<anonymous>:74:7)
JavaScript at Array.rule (<anonymous>:92:7)
JavaScript at Core.process (<anonymous>:1384:13)
JavaScript at MarkdownIt.parse (<anonymous>:1149:13)
JavaScript at MarkdownIt.render (<anonymous>:1169:36)
JavaScript at cook (<anonymous>:578:32)
JavaScript at customRenderFn (<anonymous>:358:14)
JavaScript at replace (<anonymous>:155:23)
JavaScript at applyBBCode (<anonymous>:278:25)

Env

HTTP HOSTS: meta.discourse.org
4 Likes

After a quick practice test with the above example, this appears to be fixed now. :+1:

2 Likes