Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r11540: LJSUP-11398 (Problem with renames)

Committer: ailyin
LJSUP-11398 (Problem with renames)
U   trunk/cgi-bin/LJ/Hooks/Userinfo.pm
Modified: trunk/cgi-bin/LJ/Hooks/Userinfo.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Userinfo.pm	2012-02-28 07:51:39 UTC (rev 11539)
+++ trunk/cgi-bin/LJ/Hooks/Userinfo.pm	2012-02-29 12:06:21 UTC (rev 11540)
@@ -6,6 +6,8 @@
 LJ::register_hook("post_create", sub {
     my $args = shift;
 
+    return unless LJ::is_web_context();
+
     my $sclient = LJ::theschwartz();
     my $u = LJ::load_user ($args->{'user'});
 

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