When rebaking, update the links even if the cooked content didn't change. Someone

might be linking to us even if we don't have a link.
This commit is contained in:
Robin Ward 2013-06-08 21:51:32 -04:00
parent c2821bee91
commit 26a81b30c2

View File

@ -9,11 +9,11 @@ task "posts:rebake" => :environment do
if cooked != p.cooked
Post.exec_sql('update posts set cooked = ? where id = ?', cooked, p.id)
p.cooked = cooked
TopicLink.extract_from(p)
putc "#"
else
putc "."
end
TopicLink.extract_from(p)
end
puts
puts