mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
fix build
This commit is contained in:
parent
f155ff8270
commit
5bea933370
1 changed files with 2 additions and 1 deletions
|
@ -397,7 +397,8 @@ class PostRevisor
|
|||
matches.each do |match|
|
||||
next if match[0] =~ /\<img(.*)src=/ || match[0].blank?
|
||||
new_description = match[0]
|
||||
new_description = nil if new_description == I18n.t("category.replace_paragraph")
|
||||
# first 50 characters should be fine to test they haven't changed the default description
|
||||
new_description = nil if new_description.starts_with?(I18n.t("category.replace_paragraph")[0..50])
|
||||
category.update_column(:description, new_description)
|
||||
@category_changed = category
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue