Permalink
Browse files

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

  • Loading branch information...
Pistos committed May 26, 2012
1 parent 71aad42 commit 0c5b59a7ddaf02213559dae60441a6499c6ea8be
Showing with 6 additions and 2 deletions.
  1. +6 −2 bin/job-processor.rb
View
@@ -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.