Skip to content

Commit 839a483

Browse files
authored
Fix RSS validation: update itunes:explicit format to boolean (#3432)
* Fix RSS validation: update itunes:explicit format to boolean Changes 'itunes:explicit' value from 'yes'/'no' to 'true'/'false' to comply with current iTunes/Apple Podcasts requirements. Fixes #2982 * Fix RSS encoded URL 404 by deferring static file serving Adds 'defer: true' to koa-static configuration to allow dynamic routes (like /$/rss/:claimName/:claimId) to be matched before static files. This fixes RSS feed validators returning 404 HTML instead of XML when accessing URLs with encoded characters (e.g., spaces as %20). Part of #2982
1 parent 8ddaa9c commit 839a483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/rss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const generateItunesOwnerElement = (claim) => {
169169

170170
const generateItunesExplicitElement = (claim) => {
171171
const tags = (claim && claim.value && claim.value.tags) || [];
172-
return { 'itunes:explicit': tags.includes('mature') ? 'yes' : 'no' };
172+
return { 'itunes:explicit': tags.includes('mature') ? 'true' : 'false' };
173173
};
174174

175175
const getItunesCategory = (claim) => {

0 commit comments

Comments
 (0)