Committer: ailyin
LJSUP-6512 (The adjustment of displaying the birthday is not working)U branches/facebook-integration2/cgi-bin/LJ/Identity/Facebook.pm
Modified: branches/facebook-integration2/cgi-bin/LJ/Identity/Facebook.pm =================================================================== --- branches/facebook-integration2/cgi-bin/LJ/Identity/Facebook.pm 2010-08-05 07:32:34 UTC (rev 9310) +++ branches/facebook-integration2/cgi-bin/LJ/Identity/Facebook.pm 2010-08-05 08:23:54 UTC (rev 9311) @@ -73,6 +73,9 @@ if (my $birthday = $userdata->{'birthday'}) { my ($month, $day, $year) = ($birthday =~ /(\d+)\/(\d+)\/(\d+)/); LJ::update_user($u, { 'bdate' => "$year-$month-$day" }); + + # if we've got their birthday, let's display it in full + $u->set_prop( 'opt_showbday' => 'F' ); } # the name specified in profile; this can actually be changed