Committer: afedorov
LJSUP-13349: VK crosspost should be unavailable for screened commentsU trunk/cgi-bin/LJ/Worker/Repost/CommentToFacebook.pm U trunk/cgi-bin/LJ/Worker/Repost/CommentToTwitter.pm U trunk/cgi-bin/LJ/Worker/Repost/CommentToVkontakte.pm
Modified: trunk/cgi-bin/LJ/Worker/Repost/CommentToFacebook.pm =================================================================== --- trunk/cgi-bin/LJ/Worker/Repost/CommentToFacebook.pm 2012-09-11 12:36:58 UTC (rev 12636) +++ trunk/cgi-bin/LJ/Worker/Repost/CommentToFacebook.pm 2012-09-11 12:54:35 UTC (rev 12637) @@ -26,7 +26,7 @@ # if it has somehow disappeared in the meantime, pretend everything # is fine and don't even attempt to repost - return $job->completed unless $comment->valid; + return $job->completed unless $comment->valid && !$comment->is_screened && !$comment->is_spam; my $comment_url = $comment->url; Modified: trunk/cgi-bin/LJ/Worker/Repost/CommentToTwitter.pm =================================================================== --- trunk/cgi-bin/LJ/Worker/Repost/CommentToTwitter.pm 2012-09-11 12:36:58 UTC (rev 12636) +++ trunk/cgi-bin/LJ/Worker/Repost/CommentToTwitter.pm 2012-09-11 12:54:35 UTC (rev 12637) @@ -24,7 +24,7 @@ # if it has somehow disappeared in the meantime, pretend everything # is fine and don't even attempt to repost - return $job->completed unless $comment->valid; + return $job->completed unless $comment->valid && !$comment->is_screened && !$comment->is_spam; my $comment_url = $comment->url; Modified: trunk/cgi-bin/LJ/Worker/Repost/CommentToVkontakte.pm =================================================================== --- trunk/cgi-bin/LJ/Worker/Repost/CommentToVkontakte.pm 2012-09-11 12:36:58 UTC (rev 12636) +++ trunk/cgi-bin/LJ/Worker/Repost/CommentToVkontakte.pm 2012-09-11 12:54:35 UTC (rev 12637) @@ -18,7 +18,7 @@ # if it has somehow disappeared in the meantime, pretend everything # is fine and don't even attempt to repost - return $job->completed unless $comment->valid; + return $job->completed unless $comment->valid && !$comment->is_screened && !$comment->is_spam; my $comment_url = $comment->url;