From 26a81b30c2f490c522daed37ad5de5ade4f8238b Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Sat, 8 Jun 2013 21:51:32 -0400 Subject: [PATCH] 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. --- lib/tasks/posts.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake index 1ba8858f42f..4fa472c65ab 100644 --- a/lib/tasks/posts.rake +++ b/lib/tasks/posts.rake @@ -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