afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-09-12 03:31 pm

[dw-free] OpenID accounts missing comment management options on customized comment pages

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

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

Fix comment deletion link for openid users.

Patch by [personal profile] yvi.

Files modified:
  • cgi-bin/LJ/S2.pm
--------------------------------------------------------------------------------
diff -r 69fa986aa326 -r 254e8f19e12d cgi-bin/LJ/S2.pm
--- a/cgi-bin/LJ/S2.pm	Sat Sep 12 09:54:57 2009 -0500
+++ b/cgi-bin/LJ/S2.pm	Sat Sep 12 15:30:41 2009 +0000
@@ -2252,6 +2252,7 @@ sub UserLite
     $o = {
         '_type' => 'UserLite',
         '_u' => $u,
+        'user' => LJ::ehtml($u->user),
         'username' => LJ::ehtml($u->display_name),
         'name' => LJ::ehtml($u->{'name'}),
         'journal_type' => $u->{'journaltype'},
@@ -2905,7 +2906,7 @@ sub _Comment__get_link
     my $page = get_page();
     my $u = $page->{'_u'};
     my $post_user = $page->{'entry'} ? $page->{'entry'}->{'poster'}->{'username'} : undef;
-    my $com_user = $this->{'poster'} ? $this->{'poster'}->{'username'} : undef;
+    my $com_user = $this->{'poster'} ? $this->{'poster'}->{'user'} : undef;
     my $remote = LJ::get_remote();
     my $null_link = { '_type' => 'Link', '_isnull' => 1 };
     my $dtalkid = $this->{talkid};
--------------------------------------------------------------------------------

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