madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21468: LJSUP-11576: Every opening manage/shedul...

Committer: sbelyaev
LJSUP-11576: Every opening manage/sheduled_posts.bml is writing to statushistory
U   trunk/htdocs/manage/scheduled_posts.bml
Modified: trunk/htdocs/manage/scheduled_posts.bml
===================================================================
--- trunk/htdocs/manage/scheduled_posts.bml	2012-03-20 08:17:55 UTC (rev 21467)
+++ trunk/htdocs/manage/scheduled_posts.bml	2012-03-20 09:48:52 UTC (rev 21468)
@@ -51,10 +51,12 @@
     my $viewsome = !!$is_admin;
     my $viewall  = ($can_viewall && $GET{'viewall'} == 1);
 
-    LJ::statushistory_add( $usejournal_u->userid,
-                           $remote->userid,
-                           "viewall",
-                           "scheduled: username: $usejournal_u->{'user'}, statusvis: $usejournal_u->{'statusvis'}");
+    if ($viewall) {
+        LJ::statushistory_add( $usejournal_u->userid,
+                               $remote->userid,
+                               "viewall",
+                               "scheduled: username: $usejournal_u->{'user'}, statusvis: $usejournal_u->{'statusvis'}");
+    }
 
     my $entry_chooser = sub {
         my $ref = shift;

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