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

[livejournal] r18791: LJSUP-8494. Need to add link to journal

Committer: gprochaev
LJSUP-8494. Need to add link to journal

U   trunk/cgi-bin/LJ/Event/Birthday.pm
Modified: trunk/cgi-bin/LJ/Event/Birthday.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/Birthday.pm	2011-04-05 06:12:25 UTC (rev 18790)
+++ trunk/cgi-bin/LJ/Event/Birthday.pm	2011-04-05 06:27:14 UTC (rev 18791)
@@ -39,10 +39,15 @@
     my ($self, $u) = @_;
     my $lang = ($u && $u->prop('browselang')) || $LJ::DEFAULT_LANG;
 
+    my $tinyurl = $self->bdayuser->journal_base;
+    $tinyurl = LJ::API::BitLy->shorten($tinyurl);
+    undef $tinyurl if $tinyurl =~ /^500/;
+
 # [[user]]'s birthday is on [[bday]]!
     return LJ::Lang::get_text($lang, 'notification.sms.birthday', undef, {
-        user     => $self->bdayuser->display_username,
-        bday     => $self->bday,
+        user       => $self->bdayuser->display_username,
+        bday       => $self->bday,
+        mobile_url => $tinyurl,
     });
 
 #    return sprintf("%s's birthday is on %s!",

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