[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
ninetydegrees.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3290
Link in email notification goes to comments section.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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 ], --------------------------------------------------------------------------------