1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 16:17:29 +00:00

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

View File

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