alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r19080: LJSUP-8846: Notifications about new comm...

Committer: afedorov
LJSUP-8846: Notifications about new comments for paid users in personal journals from anonymous commenters were not sent.

U   trunk/cgi-bin/LJ/Event/JournalNewComment.pm
Modified: trunk/cgi-bin/LJ/Event/JournalNewComment.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/JournalNewComment.pm	2011-05-18 11:30:33 UTC (rev 19079)
+++ trunk/cgi-bin/LJ/Event/JournalNewComment.pm	2011-05-19 04:02:03 UTC (rev 19080)
@@ -721,12 +721,11 @@
 
     my @subs;
 
-    if ($comment->state eq 'B' && $entry_journal->is_personal && $entry_journal->in_class('paid')) {
+    if ($comment_author && $comment->state eq 'B' && $entry_journal->is_personal && $entry_journal->in_class('paid')) {
         
         ## Get 
         my @ids = $comment_author->friend_uids;
         my %is_friend = map { $_ => 1 } @ids; # uid -> 1
-        my $us = LJ::load_userids(@ids);
 
         require LJ::M::ProfilePage;
         my $pm = LJ::M::ProfilePage->new($comment_author);

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