diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-10-05 17:04:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 17:04:09 +0200 |
commit | d3841b766f9d37d557646003899f67525c5f755f (patch) | |
tree | 1bcab990c94f2b05678b7a83ffebe08298500f0b /recipes/pleroma/index.js | |
parent | chore: repo maintenance (#732) (diff) | |
download | ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.gz ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.zst ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.zip |
chore: add eslint-plugin-unicorn (#733)
Diffstat (limited to 'recipes/pleroma/index.js')
-rw-r--r-- | recipes/pleroma/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/pleroma/index.js b/recipes/pleroma/index.js index c6cf368..06a6e2d 100644 --- a/recipes/pleroma/index.js +++ b/recipes/pleroma/index.js | |||
@@ -6,9 +6,9 @@ module.exports = Ferdi => class Pleroma extends Ferdi { | |||
6 | }); | 6 | }); |
7 | const data = await resp.json(); | 7 | const data = await resp.json(); |
8 | const version = data.version; | 8 | const version = data.version; |
9 | return typeof (version) === 'string' && version.indexOf('Pleroma') >= 0; | 9 | return typeof (version) === 'string' && version.includes('Pleroma'); |
10 | } catch (err) { | 10 | } catch (error) { |
11 | console.log('Pleroma server validation error', err); | 11 | console.log('Pleroma server validation error', error); |
12 | } | 12 | } |
13 | return false; | 13 | return false; |
14 | } | 14 | } |