alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[ljcom] r12637: LJSUP-13349: VK crosspost should be unav...

Committer: afedorov
LJSUP-13349: VK crosspost should be unavailable for screened comments

U   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;
 

Tags: afedorov, ljcom, pm, red_alf
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments