Skip to content

Node.js based forum software built for the modern web

fixed slug issue with topics

psychobunny11ad3a867e6a
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) {