Open graph #132

Merged
bones7242 merged 14 commits from open-graph into master 2017-08-08 07:09:36 +02:00
Showing only changes of commit 4f6a000757 - Show all commits

View file

@ -92,13 +92,9 @@ module.exports = (app) => {
} else { } else {
method = SERVE; method = SERVE;
} }
} else {
if (headers['accept'] && !headers['accept'].split(',').includes('text/html')) {
method = SERVE;
} else { } else {
method = SHOW; method = SHOW;
} }
}
/* start: temporary patch for backwards compatability spee.ch/name/claim_id */ /* start: temporary patch for backwards compatability spee.ch/name/claim_id */
if (isValidShortUrlOrClaimId(name) && !isValidShortUrlOrClaimId(identifier)) { if (isValidShortUrlOrClaimId(name) && !isValidShortUrlOrClaimId(identifier)) {
let tempName = name; let tempName = name;