[ljcom] r3936: -- merging bugfix from abe

Nov 16, 2006 21:17


Committer: botemployee-- merging bugfix from abe

U branches/beta-2006-11-15/cgi-bin/ljcom.pl

Modified: branches/beta-2006-11-15/cgi-bin/ljcom.pl
===================================================================
--- branches/beta-2006-11-15/cgi-bin/ljcom.pl 2006-11-16 21:15:31 UTC (rev 3935)
+++ branches/beta-2006-11-15/cgi-bin/ljcom.pl 2006-11-16 21:17:49 UTC (rev 3936)
@@ -921,11 +921,13 @@
$u->note_transition('account', 'new' => 'free');
}

- # Generate first post
- # -- don't call unless in web context so that
- # test suites and shell scripts don't break
- # when creating new users
- nu_auto_post($u) if LJ::is_web_context();
+ if ($u->is_person) {
+ # Generate first post
+ # -- don't call unless in web context so that
+ # test suites and shell scripts don't break
+ # when creating new users
+ nu_auto_post($u) if LJ::is_web_context();
+ }

if ($u->{journaltype} eq 'P') {
$u->subscribe( event => 'OfficialPost', method => 'Inbox' );

Previous post Next post
Up