Don't try to show the adult content warning when the entry is deleted.

        Patch by kareila. 

diffs (15 lines):

diff -r 203a37ceb000 -r 1c065eefae13 cgi-bin/Apache/LiveJournal.pm
--- a/cgi-bin/Apache/LiveJournal.pm     Mon Sep 20 17:42:25 2010 +0800
+++ b/cgi-bin/Apache/LiveJournal.pm     Mon Sep 20 18:11:11 2010 +0800
@@ -553,9 +553,11 @@ sub trans
 
             # we should show the page (no interstitial) if:
             # the viewed user is deleted / suspended OR
+            # the entry is specified but invalid OR
             # the remote user owns the journal we're viewing OR
             # the remote user posted the entry we're viewing
             my $should_show_page = ( $u && ! $u->is_visible ) || 
+                                   ( $entry && ! $entry->valid ) ||
                                    ( $remote && 
                                        ( $remote->can_manage( $u ) || ( $entry 
&& $remote->equals( $poster ) ) )
                                    );
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to