slartyblartfast (slartyblartfast) wrote in changelog,
slartyblartfast
slartyblartfast
changelog

[ljcom] r8148: LJSUP-5451: Publication Writer's block t...

Committer: mchernyshev
LJSUP-5451: Publication Writer's block to RU- and US-Journals
- bugfix: don't count lj-bot posts as user comment to QotD.
U   trunk/cgi-bin/LJ/Hooks/QotD.pm
Modified: trunk/cgi-bin/LJ/Hooks/QotD.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/QotD.pm	2010-01-28 11:38:39 UTC (rev 8147)
+++ trunk/cgi-bin/LJ/Hooks/QotD.pm	2010-01-29 08:17:32 UTC (rev 8148)
@@ -179,6 +179,8 @@
         return if $_->prop('exclude_from_verticals');
     }
 
+    return if 'lj_bot' eq $opts->{req}->{user}; # Don't count autoposted entry from 'lj_bot'.
+
     # add to queue
     LJ::queue("latest_qotd_$qid", $LJ::RECENT_QOTD_SIZE)->add(join(',', $entry->journalid, $entry->jitemid));
 });

Tags: ljcom, pm, slartyblartfast
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