[dw-free] On comment reply pages, add a link back to parent comment and its parent comment
[commit: http://hg.dwscoalition.org/dw-free/rev/4e1c7180dbc0]
http://bugs.dwscoalition.org/show_bug.cgi?id=154
Add links back to the parent/threadroot comments on reply pages.
Patch by
grimsniffer.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=154
Add links back to the parent/threadroot comments on reply pages.
Patch by
Files modified:
- cgi-bin/LJ/S2/ReplyPage.pm
--------------------------------------------------------------------------------
diff -r 51ee4b0fec37 -r 4e1c7180dbc0 cgi-bin/LJ/S2/ReplyPage.pm
--- a/cgi-bin/LJ/S2/ReplyPage.pm Wed Jan 06 00:20:55 2010 +0000
+++ b/cgi-bin/LJ/S2/ReplyPage.pm Wed Jan 06 00:24:59 2010 +0000
@@ -187,6 +187,7 @@ sub ReplyPage
my $dtalkid = $re_talkid * 256 + $entry->anum;
+ my $cmtobj = LJ::Comment->new( $u, dtalkid => $dtalkid );
$replyto = {
'_type' => 'Comment',
'subject' => LJ::ehtml($parpost->{'subject'}),
@@ -197,6 +198,8 @@ sub ReplyPage
'metadata' => {},
'permalink_url' => $u->{'_journalbase'} . "/$ditemid.html?view=$dtalkid" . LJ::Talk::comment_anchor( $dtalkid ),
'depth' => 1,
+ 'parent_url' => $cmtobj->parent_url,
+ 'threadroot_url' => $cmtobj->threadroot_url,
'time' => $datetime,
'system_time' => $datetime,
'tags' => [],
--------------------------------------------------------------------------------

no subject