spee.ch/helpers/functions/isFreePublicClaim.js
Fillerino 7da97e2933 Semicolon rule added
Semicolon rule enforced as the main lbry-app uses semicolons!
2017-06-19 18:37:35 +02:00

11 lines
361 B
JavaScript

module.exports = ({ value }) => {
console.log('>> check: isFreePublicClaim?');
if (
(value.stream.metadata.license.indexOf('Public Domain') !== -1 || value.stream.metadata.license.indexOf('Creative Commons') !== -1) &&
(!value.stream.metadata.fee || value.stream.metadata.fee.amount === 0)
) {
return true;
} else {
return false;
}
};