From 11ad3a867e6ad94eb9bb67dfb5df6e7e853a25df Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 28 May 2013 14:51:49 -0400 Subject: [PATCH] fixed slug issue with topics --- src/schema.js | 7 ------- src/topics.js | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/schema.js b/src/schema.js index 664707a57d..0a64da28ba 100644 --- a/src/schema.js +++ b/src/schema.js @@ -37,13 +37,6 @@ posts: 'tid:' + tid + ':posts', queued_tids: 'topics:queued:tid', - - slug: function(slug) { - return { - tid: 'topic:slug:' + slug + ':tid' - } - } - } }; diff --git a/src/topics.js b/src/topics.js index 7c64d6dd4c..73abcb1fd8 100644 --- a/src/topics.js +++ b/src/topics.js @@ -329,7 +329,7 @@ marked.setOptions({ RDB.set(schema.topics(tid).slug, slug); RDB.set(schema.topics(tid).timestamp, new Date().getTime()); - RDB.set(schema.topics().slug(slug).tid, tid); + RDB.set('topic:slug:' + slug + ':tid', tid); // Posts posts.create(uid, tid, content, function(pid) {