vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r21636: LJSUP-11623: Update default communuties ...

Committer: vad
LJSUP-11623: Update default communuties list for new users
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-04-04 13:16:19 UTC (rev 21635)
+++ trunk/cgi-bin/LJ/User.pm	2012-04-04 14:02:01 UTC (rev 21636)
@@ -153,7 +153,9 @@
         }
     }
     # if we have initial friends for new accounts, add them.
-    my @initial_friends = LJ::SUP->is_sup_enabled($u) ? @LJ::SUP_INITIAL_FRIENDS : @LJ::INITIAL_FRIENDS;
+    my @initial_friends = LJ::SUP->is_sup_enabled($u) 
+            ? (LJ::GeoLocation->ip_country eq 'UA' ? @LJ::UA_INITIAL_FRIENDS : @LJ::SUP_INITIAL_FRIENDS)
+            : @LJ::INITIAL_FRIENDS;
     foreach my $friend (@initial_friends) {
         my $friendid = LJ::get_userid($friend);
         LJ::add_friend($u->id, $friendid) if $friendid;

Tags: livejournal, pm, vad, vadvs
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