Adjust instance list parser

This commit is contained in:
Cadence Ember 2020-05-18 00:29:01 +12:00
parent 6a29419bff
commit d4b869046e
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
1 changed files with 3 additions and 3 deletions

View File

@ -35,9 +35,9 @@ module.exports = [
address,
country: parts[2].match(/[A-Z]{2,}|$/)[0] || null,
official: address === "https://bibliogram.art", // yeah we're just gonna hard code this
rss_enabled: parts[3].trim() === ":white_check_mark:",
has_privacy_policy: parts[4].trim() === ":white_check_mark:",
using_cloudflare: parts[5].trim() === ":crying_cat_face:"
rss_enabled: parts[3].trim() !== "",
has_privacy_policy: parts[4].trim() !== "",
using_cloudflare: parts[5].trim() !== ""
})
}
} else {