Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Add proper "Comment" links to newsfeed.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchisari authored and The Appleseed Project committed Jan 8, 2011
1 parent ea92a2b commit b0298d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/newsfeed/controllers/newsfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ private function _PrepPost ( ) {
$row->Find ( '[name=Context]', 0 )->value = $this->Get ( 'Context' );
$row->Find ( '[name=Identifier]', 0 )->value = $Identifier;

$row->Find ( '.add-comment', 0 )->href = 'http://' . $domain . '/profile/' . $username . '/page/' . $Identifier . '#comments';

return ( $row->outertext );
}

Expand Down Expand Up @@ -226,6 +228,8 @@ private function _PrepLink ( ) {
$row->Find ( '[name=Context]', 0 )->value = $this->Get ( 'Context' );
$row->Find ( '[name=Identifier]', 0 )->value = $Identifier;

$row->Find ( '.add-comment', 0 )->href = 'http://' . $domain . '/profile/' . $username . '/page/' . $Identifier . '#comments';

return ( $row->outertext );
}

Expand Down Expand Up @@ -296,6 +300,8 @@ private function _PrepJournal ( ) {
$row->Find ( '[name=Context]', 0 )->value = $this->Get ( 'Context' );
$row->Find ( '[name=Identifier]', 0 )->value = $Identifier;

$row->Find ( '.add-comment', 0 )->href = $ActionLink . '#comments';

return ( $row->outertext );
}

Expand Down

0 comments on commit b0298d4

Please sign in to comment.