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

[livejournal] r17521: LJSUP-7092. Short links must be fought o...

Committer: gprochaev
LJSUP-7092. Short links must be fought on http://m.livejournal.com/

U   trunk/cgi-bin/LJ/Event/JournalNewComment.pm
Modified: trunk/cgi-bin/LJ/Event/JournalNewComment.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/JournalNewComment.pm	2010-10-08 09:53:50 UTC (rev 17520)
+++ trunk/cgi-bin/LJ/Event/JournalNewComment.pm	2010-10-08 10:52:17 UTC (rev 17521)
@@ -272,7 +272,11 @@
         }
     }
 
-    my $tinyurl = LJ::API::BitLy->shorten($self->comment->url);
+    warn $self->comment->url;
+    #/read/user/%username%/%post_ID%/comments/%comment_ID%#comments
+    my $url = "http://m.livejournal.com/read/user/".$self->event_journal->user."/".$self->comment->entry->ditemid."/comments/".$self->comment->dtalkid."#comments";
+    warn $url;
+    my $tinyurl = LJ::API::BitLy->shorten($url);
     return undef if $tinyurl =~ /^500/;
     return $msg . " " . $tinyurl; 
 }

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