From 350052ec50fbacbf784ab059035a7320529a28dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 9 Feb 2022 17:50:08 -0500 Subject: [PATCH] fix: language keys --- public/language/en-GB/user.json | 2 +- src/controllers/accounts/posts.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/language/en-GB/user.json b/public/language/en-GB/user.json index ae12d79fb5..20f47a6d95 100644 --- a/public/language/en-GB/user.json +++ b/public/language/en-GB/user.json @@ -112,7 +112,7 @@ "has_no_ignored_topics": "This user hasn't ignored any topics yet.", "has_no_upvoted_posts": "This user hasn't upvoted any posts yet.", "has_no_downvoted_posts": "This user hasn't downvoted any posts yet.", - "has_no_voted_posts": "This user has no voted posts", + "has_no_controversial_posts": "This user does not have any downvoted posts yet.", "has_no_blocks": "You have blocked no users.", "email_hidden": "Email Hidden", diff --git a/src/controllers/accounts/posts.js b/src/controllers/accounts/posts.js index 1a81e1bcef..a43a70ccd4 100644 --- a/src/controllers/accounts/posts.js +++ b/src/controllers/accounts/posts.js @@ -49,7 +49,7 @@ const templateToData = { }, 'account/best': { type: 'posts', - noItemsFoundKey: '[[user:has_no_voted_posts]]', + noItemsFoundKey: '[[user:has_no_best_posts]]', crumb: '[[global:best]]', getSets: async function (callerUid, userData) { const cids = await categories.getCidsByPrivilege('categories:cid', callerUid, 'topics:read'); @@ -67,7 +67,7 @@ const templateToData = { }, 'account/controversial': { type: 'posts', - noItemsFoundKey: '[[user:has_no_voted_posts]]', + noItemsFoundKey: '[[user:has_no_controversial_posts]]', crumb: '[[global:controversial]]', getSets: async function (callerUid, userData) { const cids = await categories.getCidsByPrivilege('categories:cid', callerUid, 'topics:read');