mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 02:13:38 +08:00
FIX: clean up cooked group bio when bio is removed (#7745)
This commit is contained in:
parent
73bf880f74
commit
0a1b16bb16
|
@ -209,8 +209,10 @@ class Group < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def cook_bio
|
def cook_bio
|
||||||
if !self.bio_raw.blank?
|
if self.bio_raw.present?
|
||||||
self.bio_cooked = PrettyText.cook(self.bio_raw)
|
self.bio_cooked = PrettyText.cook(self.bio_raw)
|
||||||
|
else
|
||||||
|
self.bio_cooked = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user