When viewing a deleted/suspended journal, show the error message, not 
the adult content check.

        Patch by afuna. 

diffs (18 lines):

diff -r 24d531b41e6a -r 506fd96c8c0c cgi-bin/Apache/LiveJournal.pm
--- a/cgi-bin/Apache/LiveJournal.pm     Sat Jun 27 12:51:08 2009 +0000
+++ b/cgi-bin/Apache/LiveJournal.pm     Sat Jun 27 14:20:37 2009 +0000
@@ -491,9 +491,13 @@ sub trans
             }
 
             # we should show the page (no interstitial) if:
+            # the viewed user is deleted / suspended OR
             # the remote user owns the journal we're viewing OR
             # the remote user posted the entry we're viewing
-            my $should_show_page = $remote && ($remote->can_manage($u) || 
($entry && $remote->equals($poster)));
+            my $should_show_page = ! $u->is_visible || 
+                                   ( $remote && 
+                                       ( $remote->can_manage( $u ) || ( $entry 
&& $remote->equals( $poster ) ) )
+                                   );
 
             my %journal_pages = (
                 read => 1,
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to