fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-12-09 06:28 am

[dw-free] Comment Notification Email Links

[commit: http://hg.dwscoalition.org/dw-free/rev/a84acdcd9510]

http://bugs.dwscoalition.org/show_bug.cgi?id=3290

Link in email notification goes to comments section.

Patch by [personal profile] ninetydegrees.

Files modified:
  • cgi-bin/LJ/Comment.pm
--------------------------------------------------------------------------------
diff -r 2f6775db6a3a -r a84acdcd9510 cgi-bin/LJ/Comment.pm
--- a/cgi-bin/LJ/Comment.pm	Wed Dec 08 08:46:27 2010 +0800
+++ b/cgi-bin/LJ/Comment.pm	Thu Dec 09 14:28:10 2010 +0800
@@ -1445,12 +1445,14 @@ sub _format_mail_both {
         $body .= "\n";
     }
 
+    my $commentsurl = $talkurl . "#comments";
+
     $body .= LJ::Lang::get_text($lang, 'esn.here_you_can', undef, $vars);
     $body .= LJ::Event::format_options(undef, $is_html, $lang, $vars,
         {
             'esn.view_thread'       => [ 1, $self->thread_url ],
             'esn.view_threadroot'   => [ $self->parenttalkid != 0 ? 2 : 0, $self->threadroot_url ],
-            'esn.view_comments'     => [ 3, $talkurl ],
+            'esn.view_comments'     => [ 3, $commentsurl ],
             'esn.reply_at_webpage'  => [ 4, $self->reply_url ],
             'esn.unscreen_comment'  => [ $can_unscreen ? 5 : 0, $self->unscreen_url ],
             'esn.delete_comment'    => [ $self->user_can_delete($targetu) ? 6 : 0, $self->delete_url ],
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org