mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 00:13:37 +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
|
||||
|
||||
def cook_bio
|
||||
if !self.bio_raw.blank?
|
||||
if self.bio_raw.present?
|
||||
self.bio_cooked = PrettyText.cook(self.bio_raw)
|
||||
else
|
||||
self.bio_cooked = nil
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user