spee.ch/helpers/functions/isFreePublicClaim.js

11 lines
374 B
JavaScript
Raw Normal View History

module.exports = function(claim){
2017-06-17 04:31:31 +02:00
console.log(">> check: isFreePublicClaim?");
if (((claim.value.stream.metadata.license.indexOf("Public Domain") != -1 ) || (claim.value.stream.metadata.license.indexOf("Creative Commons") != -1 ))
&&
(!claim.value.stream.metadata.fee || claim.value.stream.metadata.fee.amount === 0)) {
return true;
} else {
return false;
}
};