diff options
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 | } |