diff --git a/src/topics.js b/src/topics.js index d4c780193e..7c64d6dd4c 100644 --- a/src/topics.js +++ b/src/topics.js @@ -328,7 +328,6 @@ marked.setOptions({ RDB.set(schema.topics(tid).uid, uid); RDB.set(schema.topics(tid).slug, slug); RDB.set(schema.topics(tid).timestamp, new Date().getTime()); - RDB.set(schema.topics().slug(slug).tid, tid); diff --git a/src/webserver.js b/src/webserver.js index 697eacd4ef..007db8374c 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -95,7 +95,7 @@ var express = require('express'), // Complex Routes app.get('/topic/:topic_id/:slug?', function(req, res) { var topic_url = req.params.topic_id + (req.params.slug ? '/' + req.params.slug : ''); - topics.get_cid_by_tid(req.params.topic_id, function() { + topics.get_cid_by_tid(req.params.topic_id, function(cid) { res.send( build_header() + '' +