mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 06:56:18 +02:00
fix: removing topic tools/checkbox from /world for guests, reword guest CTA in /world
This commit is contained in:
@@ -18,10 +18,10 @@
|
|||||||
"help.federating": "Likewise, if users from outside of this forum start following <em>you</em>, then your posts will start appearing on those apps and websites as well.",
|
"help.federating": "Likewise, if users from outside of this forum start following <em>you</em>, then your posts will start appearing on those apps and websites as well.",
|
||||||
"help.next-generation": "This is the next generation of social media, start contributing today!",
|
"help.next-generation": "This is the next generation of social media, start contributing today!",
|
||||||
|
|
||||||
"onboard.title": "Your window to the fediverse...",
|
"onboard.title": "A world of content at your fingertips…",
|
||||||
"onboard.what": "This is your personalized category made up of only content found outside of this forum. Whether something shows up in this page depends on whether you follow them, or whether that post was shared by someone you follow.",
|
"onboard.what": "Think of this as your global discovery feed. It brings together interesting discussions from across the web and other communities, all in one place.",
|
||||||
"onboard.why": "There's a lot that goes on outside of this forum, and not all of it is relevant to your interests. That's why following people is the best way to signal that you want to see more from someone.",
|
"onboard.why": "While you can browse what's trending now, the best way to use this feed is to make it your own. By creating an account, you can follow specific creators and topics to filter out the noise and see only what matters to you.",
|
||||||
"onboard.how": "In the meantime, you can click on the shortcut buttons at the top to see what else this forum knows about, and start discovering some new content!",
|
"onboard.how": "Ready to dive in? Create an account to start following others, get notified when people reply to you, and save your favorite finds.",
|
||||||
|
|
||||||
"category-search": "Find a category...",
|
"category-search": "Find a category...",
|
||||||
"see-more": "See more",
|
"see-more": "See more",
|
||||||
|
|||||||
@@ -26,9 +26,10 @@ controller.list = async function (req, res) {
|
|||||||
let start = Math.max(0, (page - 1) * topicsPerPage);
|
let start = Math.max(0, (page - 1) * topicsPerPage);
|
||||||
let stop = start + topicsPerPage - 1;
|
let stop = start + topicsPerPage - 1;
|
||||||
|
|
||||||
const [userSettings, userPrivileges] = await Promise.all([
|
const [userSettings, userPrivileges, isAdminOrGlobalMod] = await Promise.all([
|
||||||
user.getSettings(req.uid),
|
user.getSettings(req.uid),
|
||||||
privileges.categories.get('-1', req.uid),
|
privileges.categories.get('-1', req.uid),
|
||||||
|
user.isAdminOrGlobalMod(req.uid),
|
||||||
]);
|
]);
|
||||||
const targetUid = await user.getUidByUserslug(req.query.author);
|
const targetUid = await user.getUidByUserslug(req.query.author);
|
||||||
let cidQuery = {
|
let cidQuery = {
|
||||||
@@ -118,8 +119,8 @@ controller.list = async function (req, res) {
|
|||||||
});
|
});
|
||||||
data.showThumbs = req.loggedIn || meta.config.privateUploads !== 1;
|
data.showThumbs = req.loggedIn || meta.config.privateUploads !== 1;
|
||||||
data.posts = postData;
|
data.posts = postData;
|
||||||
data.showTopicTools = true;
|
data.showTopicTools = isAdminOrGlobalMod;
|
||||||
data.showSelect = true;
|
data.showSelect = isAdminOrGlobalMod;
|
||||||
|
|
||||||
// Tracked/watched categories
|
// Tracked/watched categories
|
||||||
if (req.uid) {
|
if (req.uid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user