fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-08-13 10:40 am

[dw-free] Friendly 'protected content' message: broken URLs when coming from custom comment pages

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

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

Use the correct form of the name.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/S2/EntryPage.pm
--------------------------------------------------------------------------------
diff -r 461d7ba2616c -r 1cf34cfa802a cgi-bin/LJ/S2/EntryPage.pm
--- a/cgi-bin/LJ/S2/EntryPage.pm	Sat Aug 13 18:18:10 2011 +0800
+++ b/cgi-bin/LJ/S2/EntryPage.pm	Sat Aug 13 18:40:02 2011 +0800
@@ -487,10 +487,10 @@
 
             if ( $journal->is_community && ! $journal->is_closed_membership && $remote && $entry->security ne "private" ) {
                 $r->notes->{error_key} = ".comm.open";
-                $r->notes->{journalname} = $journal->name_raw;
+                $r->notes->{journalname} = $journal->username;
             } elsif ( $journal->is_community && $journal->is_closed_membership ) {
                 $r->notes->{error_key} = ".comm.closed";
-                $r->notes->{journalname} = $journal->name_raw;
+                $r->notes->{journalname} = $journal->username;
             }
         }
 
--------------------------------------------------------------------------------