Fixed emberjs output urls

This commit is contained in:
Remy Sharp 2014-03-31 22:48:31 +01:00
parent 3688a8a336
commit 7b4bdfc365

View File

@ -169,7 +169,10 @@ module.exports = Observable.extend({
// ignore orgs for now
//
// if the subdomain
if (req.subdomain !== undefsafe(bin, 'metadata.name')) {
if (custom[req.subdomain]) {
// custom domain
resolve();
} else if (req.subdomain !== undefsafe(bin, 'metadata.name')) {
reject('username does not match');
} else {
if (features('vanity', { session: { user: bin.metadata }})) {