Do not react to lack of setup

This commit is contained in:
Yarmo Mackenbach 2022-10-14 13:04:42 +02:00
parent 3c1302c150
commit 37fe998fd8
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -58,9 +58,7 @@ module.exports.fn = async (data, opts) => {
try {
validator.isURL(opts.claims.activitypub.url)
isConfigured = true
} catch (err) {
console.log(`ActivityPub fetcher was not set up (${err.message})`)
}
} catch (_) {}
const now = new Date()
const { host, pathname, search } = new URL(data.url)