madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20760: LJSV-1687: Improved URLs in notification...

Committer: sbelyaev
LJSV-1687: Improved URLs in notifications for personal messages
U   trunk/cgi-bin/LJ/Event/UserMessageRecvd.pm
Modified: trunk/cgi-bin/LJ/Event/UserMessageRecvd.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/UserMessageRecvd.pm	2011-12-12 09:16:27 UTC (rev 20759)
+++ trunk/cgi-bin/LJ/Event/UserMessageRecvd.pm	2011-12-12 09:27:31 UTC (rev 20760)
@@ -36,7 +36,8 @@
     my $other_u     = $msg->other_u;
     my $sender      = $other_u->user;
     my $msgid       = $msg->msgid;
-    my $inbox       = "$LJ::SITEROOT/inbox/?view=usermsg_recvd&selected=" . $msgid;
+    my $qid         = $msg->qid;
+    my $inbox       = "$LJ::SITEROOT/inbox/?view=usermsg_recvd&selected=" . $msgid . "#all_Row_$qid";
     $inbox = "<a href=\"$inbox\">" . LJ::Lang::get_text($lang, 'esn.your_inbox') . "</a>" if $is_html;
 
     my $vars = {
@@ -142,8 +143,10 @@
 
     my $subject = $self->load_message->subject;
     my $other_u = $self->load_message->other_u;
-    my $msgid = $self->load_message->msgid;
-    my $inbox = "$LJ::SITEROOT/inbox/?view=usermsg_recvd&selected=" . $msgid;
+    my $msgid   = $self->load_message->msgid;
+    my $qid     = $self->load_message->qid;
+
+    my $inbox = "$LJ::SITEROOT/inbox/?view=usermsg_recvd&selected=" . $msgid . "#all_Row_$qid";
     my $ret = sprintf("You've received a new message \"%s\" from %s. %s",
                    $subject, $other_u->{user},
                    $inbox);

Tags: livejournal, madeon, pm, sbelyaev
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