diff --git a/app/sql.js b/app/sql.js index a846ad1e9..3f13a6f7c 100644 --- a/app/sql.js +++ b/app/sql.js @@ -854,7 +854,10 @@ async function updateToLokiSchemaVersion1(currentVersion, instance) { const publicChatData = { ...baseData, - id: `publicChat:1@${lokiPublicServerData.serverUrl.replace(/^https?\:\/\//i, '')}`, + id: `publicChat:1@${lokiPublicServerData.serverUrl.replace( + /^https?:\/\//i, + '' + )}`, server: lokiPublicServerData.serverUrl, name: 'Loki Public Chat', channelId: '1', diff --git a/js/modules/loki_public_chat_api.js b/js/modules/loki_public_chat_api.js index 031d69b39..07629bf18 100644 --- a/js/modules/loki_public_chat_api.js +++ b/js/modules/loki_public_chat_api.js @@ -458,7 +458,7 @@ class LokiPublicChannelAPI { // if any problems, abort out if (res.err || !res.response) { - if (res.err) log.error('Error '+res.err); + if (res.err) log.error(`Error ${res.err}`); break; }