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

[livejournal] r17498: LJSUP-7017. In US IP for verified phones...

Committer: gprochaev
LJSUP-7017. In US IP for verified phones only we show columns SMS

U   trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm
Modified: trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm	2010-10-04 09:42:33 UTC (rev 17497)
+++ trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm	2010-10-04 09:58:18 UTC (rev 17498)
@@ -22,9 +22,10 @@
 
     my @ntypes = @LJ::NOTIFY_TYPES;
     my (undef, $country) = LJ::GeoLocation->ip_class;
+    my $phone = LJ::SMS::API::RU::Phone->get_phone($u->userid);
     if ($LJ::DISABLED{smsru} or
         ($country ne 'RU'
-        and not LJ::SMS::API::RU::Phone->is_users_number_supported($u)
+        and ($phone && LJ::SMS::API::RU::Phone->get_cur_phone_statuses($phone) ne 'verified')
         )
     ){
         @ntypes = grep { $_ ne 'LJ::NotificationMethod::SMSru' ? 1 : 0 } @ntypes;

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