Skip to content
Browse files

Only send local posts on NOT FOUND, not remote ones.

  • Loading branch information...
1 parent 71aad42 commit 0c5b59a7ddaf02213559dae60441a6499c6ea8be @Pistos Pistos committed May 25, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 bin/job-processor.rb
View
8 bin/job-processor.rb
@@ -81,11 +81,15 @@ def process(job)
retry_later = true
case response['message']
when /post/
- tree.req_post comment.post
+ if comment.post.local?
+ tree.req_post comment.post
+ end
when /member/
tree.req_member comment.member
else
- tree.req_post comment.post
+ if comment.post.local?
+ tree.req_post comment.post
+ end
tree.req_member comment.member
end
end

0 comments on commit 0c5b59a

Please sign in to comment.
Something went wrong with that request. Please try again.