mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Set category description to first posts cooked value (#9478)
This commit is contained in:
committed by
GitHub
parent
25bed4f643
commit
06796bec8b
@@ -287,6 +287,7 @@ class Category < ActiveRecord::Base
|
||||
update_column(:topic_id, t.id)
|
||||
post = t.posts.build(raw: description || post_template, user: user)
|
||||
post.save!(validate: false)
|
||||
update_column(:description, post.cooked) if description.present?
|
||||
|
||||
t
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user