Add /icons to the list of pages that are viewable under the openid
journalspace.
Patch by exor674.
diffs (20 lines):
diff -r 07455d2fda20 -r 512c7df69bca cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm Tue Jan 25 16:34:45 2011 +0800
+++ b/cgi-bin/LJ/User.pm Tue Jan 25 16:37:35 2011 +0800
@@ -8934,10 +8934,15 @@ sub make_journal {
}
return $error->( BML::ml( 'error.purged.text' ), "410 Gone", BML::ml(
'error.purged.name' ) ) if $u->is_expunged;
+ my %valid_identity_views = (
+ read => 1,
+ res => 1,
+ icons => 1,
+ );
# FIXME: pretty this up at some point, to maybe auto-redirect to
# the external URL or something, but let's just do this for now
# res is a resource, such as an external stylesheet
- if ( $u->is_identity && ! ( $view eq "read" || $view eq "res" ) ) {
+ if ( $u->is_identity && !$valid_identity_views{$view} ) {
my $location = $u->openid_identity;
my $warning = BML::ml( 'error.nojournal.openid', { aopts =>
"href='$location'", id => $location } );
return $error->( $warning, "404 Not here" );
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog