madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21078: LJSUP-11121: statushistory is added

Committer: sbelyaev
LJSUP-11121: statushistory is added
U   trunk/htdocs/manage/scheduled_posts.bml
Modified: trunk/htdocs/manage/scheduled_posts.bml
===================================================================
--- trunk/htdocs/manage/scheduled_posts.bml	2012-02-02 14:45:26 UTC (rev 21077)
+++ trunk/htdocs/manage/scheduled_posts.bml	2012-02-02 15:08:18 UTC (rev 21078)
@@ -33,6 +33,7 @@
 
     return "<?needlogin?>" unless $remote;
 
+    my $usejournal_u = LJ::load_user ($usejournal || $remote->user);
     if ($remote->underage) {
         return BML::redirect("$LJ::SITEROOT/agecheck/?s=1");
     }
@@ -43,10 +44,13 @@
     my $visibility = $is_admin;
     if ($can_viewall && $GET{'viewall'} == 1) {
         $visibility = LJ::DelayedEntry::VIEW_ALL;
+
+        LJ::statushistory_add( $usejournal_u->userid,
+                               $remote->userid,
+                               "viewall",
+                               "scheduled: username: $usejournal_u->{'user'}, statusvis: $usejournal_u->{'statusvis'}");
     }
 
-    my $usejournal_u = LJ::load_user ($usejournal || $remote->user);
-
     my $entry_chooser = sub {
         my $ref = shift;
         my %opts = @_;

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