aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/pleroma
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-10-05 17:04:09 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-05 17:04:09 +0200
commitd3841b766f9d37d557646003899f67525c5f755f (patch)
tree1bcab990c94f2b05678b7a83ffebe08298500f0b /recipes/pleroma
parentchore: repo maintenance (#732) (diff)
downloadferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.gz
ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.tar.zst
ferdium-recipes-d3841b766f9d37d557646003899f67525c5f755f.zip
chore: add eslint-plugin-unicorn (#733)
Diffstat (limited to 'recipes/pleroma')
-rw-r--r--recipes/pleroma/index.js6
-rw-r--r--recipes/pleroma/webview.js8
2 files changed, 7 insertions, 7 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 }
diff --git a/recipes/pleroma/webview.js b/recipes/pleroma/webview.js
index 2ba184e..c7a6530 100644
--- a/recipes/pleroma/webview.js
+++ b/recipes/pleroma/webview.js
@@ -15,8 +15,8 @@ const getInstanceConfig = async () => {
15 ); 15 );
16 const pleromaFeConfig = frontendConfig.pleroma_fe || {}; 16 const pleromaFeConfig = frontendConfig.pleroma_fe || {};
17 return { ...staticConfig, ...pleromaFeConfig }; 17 return { ...staticConfig, ...pleromaFeConfig };
18 } catch (e) { 18 } catch (error) {
19 console.log('Failed to load dynamic frontend configuration', e); 19 console.log('Failed to load dynamic frontend configuration', error);
20 return staticConfig; 20 return staticConfig;
21 } 21 }
22}; 22};
@@ -161,8 +161,8 @@ module.exports = Ferdi => {
161 } 161 }
162 }); 162 });
163 }, 163 },
164 e => { 164 error => {
165 console.log('Failed to load instance logo', e); 165 console.log('Failed to load instance logo', error);
166 Ferdi.loop(getMessages); 166 Ferdi.loop(getMessages);
167 }, 167 },
168 ); 168 );