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:
parent
c2821bee91
commit
26a81b30c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue