Danbooru

Can't edit the already posted forum post & reply

Posted under Bugs & Features

I have noticed a few days ago that I can't edit my post on the forum, as these error text will pop out instead:

Error
Unexpected error: ActiveRecord::ReadonlyAttributeError.

Details
ActiveRecord::ReadonlyAttributeError exception raised
app/controllers/forum_topics_controller.rb:69:in `update'
app/logical/rack_server_timing.rb:18:in `call'

So, is it some sort of a glitch?

Evazion mentioned this on the Discord a few days ago, so he should be aware:

evazion — 13/01/2024 05:46
forum_topic_id is marked as a read only attribute on forum posts
I upgraded to Rails 7.1 and before assigning to a read only attribute was silently ignored, now it's an error
not sure why it's considered assignment when it doesn't change though

1