[dw-free] suspended journals shouldn't display adult content check
[commit: http://hg.dwscoalition.org/dw-free/rev/3ed8be398cda]
http://bugs.dwscoalition.org/show_bug.cgi?id=340
Fix error when visiting a nonexistent journal.
Patch by
exor674.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=340
Fix error when visiting a nonexistent journal.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/Apache/LiveJournal.pm
-------------------------------------------------------------------------------- diff -r e051c4037beb -r 3ed8be398cda cgi-bin/Apache/LiveJournal.pm --- a/cgi-bin/Apache/LiveJournal.pm Wed Jul 01 15:11:39 2009 +0000 +++ b/cgi-bin/Apache/LiveJournal.pm Wed Jul 01 15:18:13 2009 +0000 @@ -494,7 +494,7 @@ sub trans # 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 = ! $u->is_visible || + my $should_show_page = ( $u && ! $u->is_visible ) || ( $remote && ( $remote->can_manage( $u ) || ( $entry && $remote->equals( $poster ) ) ) ); --------------------------------------------------------------------------------