Node.js based forum software built for the modern web
changed the /latest route to /recent to match the text
Baris Usaklia43c7bc90f63
diff --git a/public/templates/config.json b/public/templates/config.jsonindex 61efdeef50..0a1e2b88f9 100644--- a/public/templates/config.json+++ b/public/templates/config.json@@ -19,7 +19,7 @@"users[^]*following": "following","users[^]*followers": "followers","users/[^]*": "account",- "latest": "category",+ "recent": "category","popular": "category","active": "category"},diff --git a/public/templates/header.tpl b/public/templates/header.tplindex 96f1c086bb..7008a9e71f 100644--- a/public/templates/header.tpl+++ b/public/templates/header.tpl@@ -47,7 +47,7 @@<div class="nav-collapse collapse"><ul class="nav nodebb-inline-block"><li>- <a href="/latest">Recent <!--<span class="badge badge-inverse">3</span>--></a>+ <a href="/recent">Recent <!--<span class="badge badge-inverse">3</span>--></a></li><!--<li><a href="/popular">Popular</a>diff --git a/src/webserver.js b/src/webserver.jsindex 2cdc28ceb8..820cf3ea78 100644--- a/src/webserver.js+++ b/src/webserver.js@@ -84,7 +84,7 @@ var express = require('express'),// Basic Routes (entirely client-side parsed, goal is to move the rest of the crap in this file into this one section)(function() {- var routes = ['login', 'register', 'account', 'latest', 'popular', 'active', '403', '404'];+ var routes = ['login', 'register', 'account', 'recent', 'popular', 'active', '403', '404'];for (var i=0, ii=routes.length; i<ii; i++) {(function(route) {@@ -247,7 +247,7 @@ var express = require('express'),res.json(data);}, req.params.id, uid);break;- case 'latest' :+ case 'recent' :categories.getLatestTopics(uid, 0, 9, function(data) {res.json(data);});