mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 00:03:26 +08:00
fix build
This commit is contained in:
parent
f155ff8270
commit
5bea933370
@ -397,7 +397,8 @@ class PostRevisor
|
|||||||
matches.each do |match|
|
matches.each do |match|
|
||||||
next if match[0] =~ /\<img(.*)src=/ || match[0].blank?
|
next if match[0] =~ /\<img(.*)src=/ || match[0].blank?
|
||||||
new_description = match[0]
|
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.update_column(:description, new_description)
|
||||||
@category_changed = category
|
@category_changed = category
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user