mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-02-20 10:14 am

[dw-free] Move communities/feeds to individual subdomains, not community.*/syndicated.*

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

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

Stop sending syn/comms to subdomains.

Patch by [personal profile] afuna.

--------------------------------------------------------------------------------
diff -r 7de94a158fac -r cd84ab154e34 cgi-bin/Apache/LiveJournal.pm
--- a/cgi-bin/Apache/LiveJournal.pm	Fri Feb 20 10:11:42 2009 +0000
+++ b/cgi-bin/Apache/LiveJournal.pm	Fri Feb 20 10:14:21 2009 +0000
@@ -415,11 +415,9 @@ sub trans
         my $u = LJ::load_user($orig_user);
 
         # do redirects:
-        # -- communities to the right place
         # -- uppercase usernames
         # -- users with hyphens/underscores, except users from external domains (see table 'domains')
-        if ($u && $u->is_community && $opts->{'vhost'} =~ /^(?:users||tilde)$/ ||
-            $orig_user ne lc($orig_user) ||
+        if ( $orig_user ne lc($orig_user) ||
             $orig_user =~ /[_-]/ && $u && $u->journal_base !~ m!^http://$host!i && $opts->{'vhost'} !~ /^other:/) {
 
             my $newurl = $uri;
--------------------------------------------------------------------------------