changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r18166: LJSUP-7424 ACME Content Scanning of Post...

Committer: aurbanowich
LJSUP-7424 ACME Content Scanning of Posts for Negative Terms
+ subject checking

U   trunk/cgi-bin/LJ/Entry.pm
Modified: trunk/cgi-bin/LJ/Entry.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry.pm	2011-02-01 04:27:50 UTC (rev 18165)
+++ trunk/cgi-bin/LJ/Entry.pm	2011-02-01 04:33:56 UTC (rev 18166)
@@ -1360,7 +1360,7 @@
     
     my $tags = $self->prop('personifi_tags');
     return $1 if $tags =~ /nterms:(\w+)/;
-    my $nterms = ( $self->event_raw =~ /($LJ::NEGATIVE_TERMS)/)?'no':'yes';
+    my $nterms = ( ($self->subject_raw . ' '. $self->event_raw) =~ /($LJ::NEGATIVE_TERMS)/) ?'no':'yes';
     $self->set_prop(personifi_tags => ($tags?"$tags,":'') . "nterms:$nterms");
     return $nterms;
 }

Tags: changelog_bot, livejournal, pm
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