mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-04-12 04:40 am

[dw-free] OpenID accounts don't get to see their posted comments.

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

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

Allow recent comments view for OpenID users.

Patch by [staff profile] denise.

Files modified:
  • htdocs/tools/recent_comments.bml
--------------------------------------------------------------------------------
diff -r 35ac5ccb5be3 -r bbb0b7b18348 htdocs/tools/recent_comments.bml
--- a/htdocs/tools/recent_comments.bml	Sun Apr 12 04:38:06 2009 +0000
+++ b/htdocs/tools/recent_comments.bml	Sun Apr 12 04:40:03 2009 +0000
@@ -64,7 +64,7 @@ body<=
     }
 
     # Retrieve posted
-    if ($u->{journaltype} eq "P") {
+    if ($u->is_individual) {
         $sth = $dbcr->prepare("SELECT posttime, journalid, nodetype, nodeid, jtalkid, publicitem ".
                               "FROM talkleft ".
                               "WHERE userid=?  ORDER BY posttime DESC LIMIT $count");
@@ -80,9 +80,9 @@ body<=
 
     $ret .= "<?standout <div style='text-align: center'>";
     $ret .= "<a name='received'></a>";
-    $ret .= BML::ml('Actionlink', { 'link' => "Latest Received"}) . " ";
-    $ret .= BML::ml('Actionlink', { 'link' => "<a href='#posted'>Latest Posted</a>"}) . " "
+    $ret .= BML::ml('Actionlink', { 'link' => "Latest Received"}) . " "
         if $u->is_person;
+    $ret .= BML::ml('Actionlink', { 'link' => "<a href='#posted'>Latest Posted</a>"}) . " ";
     $ret .= BML::ml('Actionlink', { 'link' => "<a href='$LJ::SITEROOT/manage/comments'>$ML{'.managesettings'}</a>"});
 
     $ret .= "<br />";
@@ -233,7 +233,7 @@ body<=
                              { 'current' => $max, 'max' => $LJ::TOOLS_RECENT_COMMENTS_MAX }).
                                  " p?>" unless $max >= $LJ::TOOLS_RECENT_COMMENTS_MAX;
 
-    if ($u->{journaltype} eq "P") {
+    if ($u->is_individual) {
         $ret .= "<div style='text-align: center; margin-top: 1em'><a name='posted'></a>" .
             BML::ml('Actionlink', { 'link'=>"<a href='#received'>$ML{ '.latest.received' }</a>"}) .
             BML::ml('Actionlink', { 'link' => $ML{ '.latest.posted' }}) . " " .
--------------------------------------------------------------------------------