mirror of
https://github.com/discourse/discourse.git
synced 2025-04-27 01:44:32 +08:00
FIX: topic links with long titles can not be crawled
0..255 == 256 numbers column fits 255
This commit is contained in:
parent
45adeacd45
commit
add6e12ce4
@ -119,7 +119,7 @@ module Jobs
|
|||||||
title.gsub!(/ +/, ' ')
|
title.gsub!(/ +/, ' ')
|
||||||
title.strip!
|
title.strip!
|
||||||
if title.present?
|
if title.present?
|
||||||
crawled = (TopicLink.where(id: topic_link.id).update_all(['title = ?, crawled_at = CURRENT_TIMESTAMP', title[0..255]]) == 1)
|
crawled = (TopicLink.where(id: topic_link.id).update_all(['title = ?, crawled_at = CURRENT_TIMESTAMP', title[0..254]]) == 1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user