Revert "Fix debug output from DEBUG_FEEDITEMS env var"

This reverts commit 0ed5d4de89.
pull/1/head
Starbeamrainbowlabs 2021-08-20 20:12:53 +01:00
parent 5dd60e1cf1
commit 926a2c2084
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
2 changed files with 2 additions and 3 deletions

View File

@ -108,7 +108,7 @@ The following environment variables can be used to influence the behaviour of th
Environment Variable | Purpose
------------------------|------------------------------
`FILTER_FEED` | Set to `true` to enable the filtering of posts based on whether they contain any bad words. Uses [futility](https://www.npmjs.com/package/futility), but with a custom algorithm on top to avoid the "[Scunthorpe Problem](https://en.wikipedia.org/wiki/Scunthorpe_problem)".
`FILTER_FEED` | Set to any value to enable the filtering of posts based on whether they contain any bad words. Uses [futility](https://www.npmjs.com/package/futility), but with a custom algorithm on top to avoid the "[Scunthorpe Problem](https://en.wikipedia.org/wiki/Scunthorpe_problem)".
Example of setting an environment variable when running a build:

View File

@ -66,8 +66,7 @@ module.exports = async function() {
item.media_image_notfound = item.media_image == `./images/post.svg`;
console.log(`MEDIA IMAGE`, item.media_image);
if(typeof process.env["DEBUG_FEEDITEMS"] != "undefined"
&& process.env["DEBUG_FEEDITEMS"] === "true")
if(typeof process.env["DEBUG_FEEDITEMS"] != "undefined")
console.log(`FEED ITEM`, item);
return item;