Node.js based forum software built for the modern web
feat: add missing view-original key
Barış Soner Uşaklı66c0bc182aab
diff --git a/public/language/en-GB/category.json b/public/language/en-GB/category.jsonindex 8d0cde6eae..003326e6fe 100644--- a/public/language/en-GB/category.json+++ b/public/language/en-GB/category.json@@ -30,5 +30,6 @@"ignoring.message": "You are now ignoring updates from this category and all subcategories","watched-categories": "Watched categories",- "x-more-categories": "%1 more categories"+ "x-more-categories": "%1 more categories",+ "view-original": "View Original"}diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.jsindex a9239d6b96..31fdc1b06b 100644--- a/public/src/modules/helpers.common.js+++ b/public/src/modules/helpers.common.js@@ -35,6 +35,7 @@ module.exports = function (utils, Benchpress, tx, relative_path) {min,clamp,quote,+ concat,generateWroteReplied,generateRepliedTo,generateWrote,@@ -415,6 +416,10 @@ module.exports = function (utils, Benchpress, tx, relative_path) {return `"${str}"`;}+ function concat(...args) {+ return args.join('');+ }+function generateWroteReplied(post, timeagoCutoff) {if (post.toPid) {return generateRepliedTo.call(this, post, timeagoCutoff);diff --git a/src/controllers/accounts/settings.js b/src/controllers/accounts/settings.jsindex 61754e2561..85ba78e06a 100644--- a/src/controllers/accounts/settings.js+++ b/src/controllers/accounts/settings.js@@ -80,7 +80,7 @@ settingsController.get = async function (req, res, next) {];userData.upvoteNotifFreq = notifFreqOptions.map(- name => ({ name: name, selected: name === userData.settings.upvoteNotifFreq })+ name => ({ name: name, label: `user:upvote-notif-freq.${name}`, selected: name === userData.settings.upvoteNotifFreq }));userData.categoryWatchState = { [userData.settings.categoryWatchState]: true };