diff --git a/.eslintrc.js b/.eslintrc.js index e6b76939..bc9fb706 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -184,5 +184,5 @@ module.exports = { } } ], - "ignorePatterns": [".eslintrc.js", "widget/**/*"], + "ignorePatterns": [".eslintrc.js", "widget/**/*", "src/generate-signing-key.js"], }; diff --git a/src/Main.ts b/src/Main.ts index ffec9abf..d8871c82 100644 --- a/src/Main.ts +++ b/src/Main.ts @@ -1168,7 +1168,10 @@ export class Main { throw Error(`Failed to start Media Proxy: ${err}`); }); } else { - log.warn("Media Proxy not configured: media bridging to Slack won't work on servers requiring authenticated media (default since Synapse v1.120.0)"); + log.warn( + "Media Proxy not configured: media bridging to Slack won't work on servers requiring authenticated media " + + "(default since Synapse v1.120.0)" + ); } diff --git a/src/substitutions.ts b/src/substitutions.ts index f6df5f99..0f7ff836 100644 --- a/src/substitutions.ts +++ b/src/substitutions.ts @@ -175,7 +175,7 @@ class Substitutions { } let url: string; if (main.mediaProxy) { - url = await main.mediaProxy.generateMediaUrl(event.content.url).then(url => url.toString()); + url = await main.mediaProxy.generateMediaUrl(event.content.url).then(u => u.toString()); } else { url = main.getUrlForMxc(event.content.url, main.encryptRoom); }