wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r18233: LJSUP-7594. Managing users subscriptions...

Committer: gprochaev
LJSUP-7594. Managing users subscriptions should be more accurate

U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2011-02-08 04:14:47 UTC (rev 18232)
+++ trunk/cgi-bin/LJ/User.pm	2011-02-08 05:49:55 UTC (rev 18233)
@@ -3562,7 +3562,9 @@
     my $u = shift;
 
     ## Logging for delete all subscriptions
-    LJ::statushistory_add ( $u, $u, 'remove_subs', scalar $u->subscriptions );
+    my $remote = LJ::get_remote();
+    my $admin = $remote || LJ::load_user('system');
+    LJ::statushistory_add ( $u, $admin, 'remove_subs', scalar $u->subscriptions );
 
     return LJ::Subscription->delete_all_subs($u);
 }

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