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
|
if cooked != p.cooked
|
||||||
Post.exec_sql('update posts set cooked = ? where id = ?', cooked, p.id)
|
Post.exec_sql('update posts set cooked = ? where id = ?', cooked, p.id)
|
||||||
p.cooked = cooked
|
p.cooked = cooked
|
||||||
TopicLink.extract_from(p)
|
|
||||||
putc "#"
|
putc "#"
|
||||||
else
|
else
|
||||||
putc "."
|
putc "."
|
||||||
end
|
end
|
||||||
|
TopicLink.extract_from(p)
|
||||||
end
|
end
|
||||||
puts
|
puts
|
||||||
puts
|
puts
|
||||||
|
|
Loading…
Reference in New Issue